-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (36 loc) · 1.14 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
<head>
<link rel="manifest" href="manifest.json" />
<title>Foresight</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="icon.png">
<style id="style">
body {
display: flex;
justify-content: center;
align-items: center;
height: 80vh;
margin: 0;
zoom: 1.25;
}
html,
body {
margin: 0;
height: 100%;
overflow: hidden
}
</style>
</head>
<body></body>
<script src="https://unpkg.com/showdown/dist/showdown.min.js"></script>
<script src="bindex.js"></script>
<script>
if ('serviceWorker' in navigator && !navigator.serviceWorker.controller) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('sw.js').then(function (registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function (err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>