-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (48 loc) · 1.94 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
<!doctype html>
<html lang="en">
<head>
<title>Vanilla PWA</title>
<meta name="description" content="An example of a PWA completely written from scratch">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<link rel="apple-touch-icon" sizes="180x180" href="images/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/icons/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/icons/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="images/icons/safari-pinned-tab.svg" color="#2e7d32">
<link rel="shortcut icon" href="images/icons/favicon.ico">
<meta name="apple-mobile-web-app-title" content="Vanilla PWA">
<meta name="application-name" content="Vanilla PWA">
<meta name="msapplication-TileColor" content="#2e7d32">
<meta name="msapplication-config" content="images/icons/browserconfig.xml">
<meta name="theme-color" content="#2e7d32">
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () =>
navigator.serviceWorker.register('sw.js', {
scope: '/',
}));
}
</script>
<style>
*, *::before, *::after {
box-sizing: border-box;
}
html, body {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
background: #f0f0f0;
font-family: Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
line-height: 1.5;
font-size: 16px;
}
</style>
</head>
<body>
<my-shell></my-shell>
<script type="module" src="components/shell/element.js"></script>
<noscript>Please enable JavaScript to view this website.</noscript>
</body>
</html>