-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (46 loc) · 2.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
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Zero Sum</title>
<meta name="description" content="A place where you can read the things I write."/>
<link rel="icon" type="image/x-icon" href="favicon/favicon.ico">
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/dark.min.css">
<script id="Highlight-script" async src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script id="MathJax-script" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-chtml.min.js"></script>
<script id="GraphViz-script" async src="https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.8.2/viz.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.js"></script>
<script src="util.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Fira+Mono:wght@400;500;700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<div class="topnav">
<a class="active" href="?">Home</a>
<a href="">Archive</a>
<a href="?article=pages/contact.md">Contact</a>
<a href="?article=pages/aboutme.md">About Me</a>
</div>
<div id="spacer"></div>
<script>
let height = $('.topnav')[0].getBoundingClientRect().height;
$('#spacer')[0].style = `height: ${height}px;`
</script>
<div id="content">
<div id="article"></p>
</div>
<script>
let u = new URL(window.location.href);
let article = u.searchParams.get("article");
if (article) {
loadmd(article);
} else {
let opts = u.searchParams.get("manifest");
loadmanifest("articles/manifest.json", opts);
}
</script>
</body>
</html>