-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (43 loc) · 1.58 KB
/
index.html
File metadata and controls
43 lines (43 loc) · 1.58 KB
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
<!DOCTYPE html>
<html lang="en" data-mode="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Interactive star sky map</title>
<link rel="stylesheet" href="assets/index.css">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<script>{let mode=new URLSearchParams(window.location.search).get("mode");if(["dark","light","vintage","fantasy"].includes(mode))document.documentElement.dataset.mode=mode;}</script>
</head>
<body>
<div id="screen">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 480" width="480" height="480">
<defs>
<radialGradient id="spcl">
<stop offset="30%" stop-color="currentColor" stop-opacity="1"/>
<stop offset="100%" stop-color="currentColor" stop-opacity="0"/>
</radialGradient>
</defs>
<g class="grid"></g>
<g class="hint-lines"></g>
<g class="constellation-labels"></g>
<g class="star-labels"></g>
<g class="stars"></g>
</svg>
<div class="mode switch">
<a href="?mode=dark">Dark</a>
<span class="sep">|</span>
<a href="?mode=light">Light</a>
<span class="sep">|</span>
<a href="?mode=vintage">Vintage</a>
<span class="sep">|</span>
<a href="?mode=fantasy">Fantasy</a>
</div>
<script>document.querySelectorAll(".mode.switch a").forEach(a=>{a.dataset.active=String(a.href.endsWith(`?mode=${document.documentElement.dataset.mode}`));})</script>
</div>
<footer>
<a href="https://axtk.github.io">axtk</a>
</footer>
<script src="assets/dist/index.js" type="module"></script>
<script src="assets/stats.js"></script>
</body>
</html>