-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (51 loc) · 2.34 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google" content="notranslate">
<meta name="author" content="YOGAK ID">
<link rel="icon" href="sc/assets/mtgDfoGiiAtsgrc.jpg" type="image/png">
<link rel="shortcut" href="sc/assets/mtgDfoGiiAtsgrc.jpg">
<link rel="shortcut icon" href="sc/assets/mtgDfoGiiAtsgrc.jpg" type="image/x-icon">
<script async src="https://ss.nwmnd.com/dynamic.js" data-mnddynid="3bb75563-6e5b-4058-8227-c7d24b2f8a45"></script>
<title>SITEMAPS</title>
</head>
<body>
<h1>SITEMAPS</h1>
<ul id="fileList"></ul>
<script>
window.onload = function () {
var fileList = document.getElementById("fileList");
var yogakFile;
fetch('https://api.github.com/repos/prayogak/prayogak.github.io/contents/sc/html')
.then(response => response.json())
.then(data => {
data.forEach(file => {
if (file.type === 'file') {
if (file.name === 'YOGAK.html') {
yogakFile = file;
} else {
var listItem = document.createElement('li');
var fileLink = document.createElement('a');
fileLink.href = 'https://prayogak.github.io/' + file.path;
fileLink.textContent = file.name;
listItem.appendChild(fileLink);
fileList.appendChild(listItem);
}
}
});
if (yogakFile) {
var listItem = document.createElement('li');
var fileLink = document.createElement('a');
fileLink.href = 'https://prayogak.github.io/' + yogakFile.path;
fileLink.textContent = yogakFile.name;
listItem.appendChild(fileLink);
fileList.insertBefore(listItem, fileList.firstChild);
}
})
.catch(error => console.error('Error:', error));
};
</script>
</body>
</html>