-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (53 loc) · 2.13 KB
/
Copy pathindex.html
File metadata and controls
60 lines (53 loc) · 2.13 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html>
<head>
<title> FLAPWAPP </title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="gamecanvas">
<div id="scorecounter">
<p>0</p>
</div>
<div id="gamescore">
<div id="scorecontainer">
<img src="./assets/score-panel.png">
<div onclick="window.location.reload(true);"><img id="replay" src="./assets/replay.png"></div>
<div id="scores">
<!-- Here goes the score -->
</div>
</div>
</div>
<div id="sky" class="animate"></div>
<div id="playspace">
<div id="skylimit" class="animate"></div>
<!-- // DEBUG //-->
<!-- // DEBUG [END] //-->
<div id="bird" class="bird animate"></div>
</div>
<div id="land" class="animate"></div>
</div>
<script>
// register service worker
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/FLAPWAPP/sw.js').then(function(reg) {
if(reg.installing) {
console.log('Service worker installing');
} else if(reg.waiting) {
console.log('Service worker installed');
} else if(reg.active) {
console.log('Service worker active');
}
}).catch(function(error) {
// registration failed
console.log('Registration failed with ' + error);
});
}
</script>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>