-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (45 loc) · 1.61 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
<!DOCTYPE html public "display of affection from creativejs">
<head>
<meta charset="uft-8" />
<meta name="theme-color" content="#536878" />
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Fireworks!</title>
<link href="css/fireworks.css" rel="stylesheet">
<link rel="manifest" href="/manifest.json">
</head>
<!--
I love including these comments in pages. It pleases me that
you're reading them as well. It's like we're having a moment.
We are. Anyway, the CreativeJS team though Fireworks would
be teh r0xx0rz and I volunteered to give this a shot. So
I hope you're enjoying them and doing the "Aaah! Oooh!"
thing. If not I'm a bit upset, but I'll let it slide.
Also, big shoutz to Paul Irish for the rAF shimidimmydoo.
Paul | aerotwist
-->
<body>
<!-- Hiding library elements in the DOM is fun -->
<aside id="library">
<img src="images/nightsky.png" id="nightsky" />
<img src="images/big-glow.png" id="big-glow" />
<img src="images/small-glow.png" id="small-glow" />
</aside>
<main id="welcome-back" class="isPaused">
<h1>Welcome back!</h1>
</main>
</body>
<script src="js/requestanimframe.js"></script>
<script src="js/fireworks.js"></script>
<script>
if ('serviceWorker' in navigator) {
console.log("Will the service worker register?");
navigator.serviceWorker.register('service-worker.js')
.then(function(reg){
console.log("Yes, it did.");
}).catch(function(err) {
console.log("No it didn't. This happened: ", err)
});
}
</script>
</body>
</html>