-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.template
45 lines (43 loc) · 1.36 KB
/
index.template
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
<!DOCTYPE html>
<html>
<head>
<title>PWA-Calc</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" href="w3.css">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="icon192.png">
<link rel="apple-touch-startup-image" href="icon192.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="app_v$VERSION.js"></script>
</head>
<body>
<div id="calc"></div>
<script>
var app = Elm.Main.init({
node: document.getElementById('calc')
});
</script>
<br>
<footer class="fixed-bottom">
<div class='w3-small w3-opacity w3-center'>
v$VERSION; Copyright © 2020 <a class='w3-opacity' title='https://ensadi.com' href='https://ensadi.com/home' target='_blank'>Ensadi LLC</a>
</div>
</footer>
<script>
// make sure that the browser supports Service Workers and register if so.
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('calcsw.js').then( function(reg) {
// registration successful
console.log('Registration successful.');
console.log('Scope: ', reg.scope);
}).catch(function(error) {
// failed
console.log('Registration failed: ', error);
});
}
</script>
</body>
</html>