-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
60 lines (59 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="author" content="Adrian Jost">
<meta name="description" content="A Simple & Fast Calculator PWA"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="manifest" href="manifest.webmanifest" />
<title>PWCalculator</title>
<link
rel="icon"
type="image/png"
sizes="72x72"
href="src/static/images/icons/icon-72x72.png"
/>
<link
rel="icon"
type="image/png"
sizes="128x128"
href="src/static/images/icons/icon-128x128.png"
/>
<!-- Add to home screen for Android and modern mobile browsers -->
<meta name="theme-color" content="#18587b" />
<!-- Add to home screen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="PWCalculator" />
<link
rel="apple-touch-icon"
href="src/static/images/icons/icon-152x152.png"
/>
<!-- Add to home screen for Windows -->
<meta
name="msapplication-TileImage"
content="src/static/images/icons/icon-144x144.png"
/>
<meta name="msapplication-TileColor" content="#18587b" />
<script>
if ('serviceWorker' in navigator) {
const x = 'sw.js';
navigator.serviceWorker.register(x)
.then(function(registration) {
console.log('Registration successful, scope is:', registration.scope);
})
.catch(function(error) {
console.log('Service worker registration failed, error:', error);
});
}
</script>
</head>
<body>
<noscript>
Sorry, this website is not working without JS 😥
</noscript>
<div id="app"></div>
<script src="./src/main.js"></script>
</body>
</html>