-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 1.38 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
<head>
<title>Minimal PWA</title>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<link rel="manifest" href="manifest.json" />
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="icon" href="/tape.png" type="image/png" />
<meta name="theme-color" content="#8888ff"/>
<script type="text/javascript" src="brython_dist.js"></script>
</head>
<body onload="brython(1)">
<div class="revision">Revision 8</div>
<img src="pwa-fonts.png">
<div class="main-text">
Minimal PWA, open Console for more!
</div>
<div class="main-text">
<a href="https://see01995.github.io/ExhibitionWebApp/index.html">ExhibitionWebApp</a>
</div>
<div><canvas width="250" height="250" id="clock"></div>
<div class="network-message">
Network:
<span id="network-status" class="">Good</span>
</div>
<script type="text/javascript">
if (navigator.serviceWorker != null) {
navigator.serviceWorker.register('sw.js')
.then(function(registration) {
console.log('Registered events at scope: ', registration.scope);
});
}
fetch('./data.json')
var statusEl = document.querySelector('#network-status')
if (!navigator.onLine) {
statusEl.classList = ['is-offline']
statusEl.innerText = 'Offline'
}
</script>
<script type="text/python3">
print('hello brython')
import clock
</script>
</body>