-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (35 loc) · 926 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css">
<title>To Do List Form</title>
</head>
<body onload="viewList()">
<div id="page">
<div id="header">
<h3>To Do List</h3>
</div>
<div id="body">
<ul id="toDoListView">
</ul>
</div><!-- body -->
<div id="footer">
Designed by @freezing_sky @2016.
</div> <!-- footer -->
</div> <!-- page -->
</body>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js')
.then(function(registration) {
console.log('Service Worker registration successful with scope: ' +
registration.scope);
})
.catch(function(err) {
console.log('Service Worker registration failed: ', err);
});
}
</script>
<script src="js/main.js" type="text/javascript"></script>
</html>