forked from kallaway/100-days-of-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (30 loc) · 1.1 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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='stylesheet' href='./styles.css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css"
integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<!-- import zero-md -->
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@2/dist/zero-md.min.js"></script>
<button onclick="showMarkDown('r1')">hide r2</button>
<br><br>
<zero-md id='r1' src="./r2-2021.md"></zero-md>
<br>
<button onclick="showMarkDown('r2')">hide r1</button>
<br><br>
<zero-md id='r2' src="./r1-2021.md"></zero-md>
<script>
const showMarkDown = (id) => {
const zeromd = document.getElementById(id);
zeromd.style.display = zeromd.style.display === 'none' ? '' : 'none';
}
</script>
<a href='https://github.com/adnjoo/100d' >
<i class="fab fa-github" style='margin-top: 30px;'>
</i>
</a>
</body>
</html>