-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex1.html
More file actions
45 lines (39 loc) · 1.62 KB
/
index1.html
File metadata and controls
45 lines (39 loc) · 1.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Aione Framework</title>
<meta name="theme-color" content="#168dc5"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:100,300,400">
<link rel="stylesheet" type="text/css" href="https://cdn.aioneframework.com/assets/css/aione.min.css" >
<link rel="manifest" href="manifest.json">
</head>
<body>
<div class="bg-blue-grey bg-lighten-4 pv-40 ph-20p">
<h1 > Welcome to Tutotial 1</h1>
</div>
<script type="text/javascript" src="https://cdn.aioneframework.com/assets/js/vendor.min.js"></script>
<script type="text/javascript" src="https://cdn.aioneframework.com/assets/js/aione.min.js"></script>
<script type="text/javascript" src="/assets/js/app.js"></script>
<script type="text/javascript">
//This is the "Offline page" service worker
if ('serviceWorker' in navigator) {
//Register the ServiceWorker
navigator.serviceWorker.register('sw.js', { scope: './' }).then(function(registration) {
if(registration.installing) {
console.log('Service worker installing');
} else if(registration.waiting) {
console.log('Service worker installed');
} else if(registration.active) {
console.log('Service worker active');
}
console.log('ServiceWorker Scope: ', registration.scope);
}).catch(function(error) {
console.log('Registration failed with ' + error);
});
} else {
console.log('Browser does not support service worker');
}
</script>
</body>
</html>