File size: 1,200 Bytes
a115ebd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | <!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<title>README Görüntüleyici</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
body {
font-family: sans-serif;
line-height: 1.6;
padding: 40px;
max-width: 800px;
margin: auto;
}
#content {
border: 1px solid #ddd;
padding: 20px;
border-radius: 8px;
}
</style>
</head>
<body>
<div id="content">Yükleniyor...</div>
<script>
// README.md dosyasının yolu
const readmePath = 'README.md';
fetch(readmePath)
.then(response => response.text())
.then(markdownText => {
// Markdown'ı HTML'e çevir ve ekrana bas
document.getElementById('content').innerHTML = marked.parse(markdownText);
})
.catch(err => {
document.getElementById('content').innerHTML = "Dosya yüklenirken bir hata oluştu.";
console.error(err);
});
</script>
</body>
</html> |