-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (49 loc) · 2.37 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>
<head>
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="application-name" content="COTD">
<meta name="apple-mobile-web-app-title" content="COTD">
<meta name="theme-color" content="#beff00">
<meta name="msapplication-navbutton-color" content="#beff00">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="msapplication-starturl" content="index.html">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" sizes="48x48" href="images/i48.png">
<link rel="apple-touch-icon" type="image/png" sizes="48x48" href="images/i48.png">
<link rel="icon" type="image/png" sizes="72x72" href="images/i72.png">
<link rel="apple-touch-icon" type="image/png" sizes="72x72" href="images/i72.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/i96.png">
<link rel="apple-touch-icon" type="image/png" sizes="96x96" href="images/i96.png">
<link rel="icon" type="image/png" sizes="144x144" href="images/i144.png">
<link rel="apple-touch-icon" type="image/png" sizes="144x144" href="images/i144.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/i192.png">
<link rel="apple-touch-icon" type="image/png" sizes="192x192" href="images/i192.png">
<link rel="icon" type="image/png" sizes="256x256" href="images/i256.png">
<link rel="apple-touch-icon" type="image/png" sizes="256x256" href="images/i256.png">
<link rel="icon" type="image/png" sizes="512x512" href="images/i512.png">
<link rel="apple-touch-icon" type="image/png" sizes="512x512" href="images/i512.png">
<title>Color-Of-The-Moment</title>
<link rel="stylesheet" type="text/css" href="style.css"></link>
</head>
<body>
<p id="txt"></p>
<!--app.js-->
<script src="app.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.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>
</body>
</html>