-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (36 loc) · 1.08 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
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ff473e">
<title>Projects</title>
<meta property="og:title" content="Projects">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Projects">
<style>
body {
overflow-y: scroll;
}
.markdown-body h1 {
display: flex;
}
</style>
</head>
<body>
<ul id="list">
</ul>
<script>
(async () => {
const response = await fetch('https://api.github.com/repos/msabur/frontend-mentor-solutions/contents/');
const data = await response.json();
let htmlString = '';
for (let file of data) {
if (file.path !== "README.md" && file.path != "index.html")
htmlString += `<li><a href="${file.path}">${file.name}</a></li>`;
}
document.getElementById('list').innerHTML = htmlString;
})()
</script>
<body>
</html>