-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (57 loc) · 2.45 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>zx80</title>
<!------------------------------------------------>
<!-- METAs --------------------------------------->
<!------------------------------------------------>
<meta name="viewport" content="viewport-fit=cover,user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="theme-color" content="#f2b200" />
<!------------------------------------------------>
<!------------------------------------------------>
<!-- ICONs --------------------------------------->
<!------------------------------------------------>
<link id="favicon" rel="icon" href="sunrise.svg" type="image/svg" />
<!------------------------------------------------>
<!------------------------------------------------>
<!-- PWA setup ----------------------------------->
<!------------------------------------------------>
<!-- manifest -->
<link rel="manifest" href="manifest.json" crossorigin="use-credentials"/>
<!-- increase the compatibilty of the manifest for ios/windows...-->
<script async src="https://unpkg.com/pwacompat" crossorigin="anonymous"></script>
<!-- service worker -->
<script>
//if (location.protocol == "http:") location.protocol = "https:";
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("sw.js")
.then((reg) =>
console.log("+-> (1) 😍 Service Worker registered", reg)
)
.catch((err) =>
console.error("!!! (-) 🆘 Service Worker **not** registered", err)
);
} else {
console.warn("!!! (-) 🆘 Service Worker not supported in this browser");
}
</script>
<!------------------------------------------------>
</head>
<style>
html {
min-height: calc(100% + env(safe-area-inset-top));
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
</style>
<body>
<!-- glitch button to be redirected to glitch online code editor
<div class="glitchButton position-x-left position-y-top" style="z-index: 50; position:fixed;bottom:2px;right:10px;"></div><script src="https://button.glitch.me/button.js"></script>
-->
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>