-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (66 loc) · 2.16 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Baking Tools</title>
<!-- RealFaviconGenerator.net -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<!-- CSS -->
<link
href="https://fonts.googleapis.com/css?family=Alata&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Fira+Mono&display=swap&text=¼⅓⅔¾½"
rel="stylesheet"
/>
<link href="styles.css" rel="stylesheet" />
<script src="elm-dist.js"></script>
</head>
<body>
<div id="elm"></div>
<footer>
<div class="footer">
Icons adapted from content made by
<a href="https://www.flaticon.com/authors/freepik" title="Freepik"
>Freepik</a
>
from
<a href="https://www.flaticon.com/" title="Flaticon"
>www.flaticon.com</a
>
</div>
</footer>
<script type="module">
// Register Service Worker
// See: https://developers.google.com/web/fundamentals/primers/service-workers/
if ("serviceWorker" in navigator) {
window.addEventListener("load", async () => {
try {
const serviceWorkerUrl = "/service-worker.js";
const registration = await navigator.serviceWorker.register(
serviceWorkerUrl
);
console.log(
`Registered ${serviceWorkerUrl} with scope: ${registration.scope}`
);
} catch (error) {
console.warn(
`Unable to register Service Worker ${serviceWorkerUrl}: ${error}`
);
}
});
}
// Initialize Elm App
var app = Elm.Main.init({
node: document.getElementById("elm")
});
</script>
</body>
</html>