-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (43 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#222" />
<title>Title of the page</title>
<link rel="manifest" href="manifest.json">
<style>
div {
width: 300px;
margin: 0 auto;
text-align: center;
}
</style>
</head>
<body>
<div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 75.2 75.2">
<path fill="#009ddf" d="M55 37.9l.1.7-1.2.1-.1-3.9h-9.2v1.5l-1.2.1v-4.1h-8.7l.2 2.5-1.2.1-1.3-25.3h.1V8.5h-3.4v.9h-1v-.9h-3.3v.9h-1.2v-.9h-3.3v.9l-.6 36.5-4.5-.4-2.6 11.2 29.4 10 20.6-20.6v-8.2z"
/>
<path d="M40 62.4c-3.5-6.1-16.8-38.5-19.8-53.8L19.7 46l-4.5-.4-2.6 11.1 29.5 10-2.1-4.3z" fill="#0a71b3" />
</svg>
<p>Thanks</p>
<p>Github:
<a href="https://github.com/thisisui/thisispwa">This Is PWA Seed</a>
</p>
</div>
</body>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</html>