-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
75 lines (68 loc) · 2.04 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<title>Rudolph Runner / Albert Xing</title>
<style>
body {
background: #99d9ea;
margin: 0;
}
#container {
height: 60%;
}
#snow {
background: white;
height: 40%;
width: 100%;
}
#snow .help {
padding-top: 24px;
text-align: center;
}
#snow .help img {
display: none;
}
#snow .help img[src *= "."] {
display: initial;
}
#over {
position: fixed;
top: 30%;
width: 100%;
text-align: center;
display: none;
}
.footer {
margin: 1em;
position: fixed;
bottom: 0;
left: 0;
font: 10pt sans-serif;
color: #c3c3c3;
}
.footer a {
color: #c3c3c3;
}
</style>
</head>
<body>
<div id="container">
<canvas width="800" height="300" id="canvas"></canvas>
</div>
<div id="snow">
<div class="help">
<img id="help-img" src="images/k1.png" height="36">
</div>
</div>
<div id="over">
<img id="over-img" src="images/o.png" height="15">
</div>
<div class="footer">Made by <a href="https://albertxing.github.io">Albert Xing</a>. Source on <a href="https://github.com/albertxing/rudolph-runner">GitHub</a></div>
<script src="js/util.js"></script>
<script src="js/game.js"></script>
<script src="js/model.js"></script>
<script src="js/rudolph.js"></script>
<script src="js/particle.js"></script>
<script src="js/obstacle.js"></script>
<script async="async">!function(){var e="https://alight.albertxing.com:8443",o=new XMLHttpRequest;o.open("post",e),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onload=function(){if(o.responseText){var e=JSON.parse(o.responseText).vid;localStorage.avid=e}};var t="action=enter&url="+window.location+"&referrer="+document.referrer;localStorage&&localStorage.avid&&(t+="&avid="+localStorage.avid),o.send(t),window.onbeforeunload=function(){o=new XMLHttpRequest,o.open("post",e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send("action=leave")}}();</script>
</body>
</html>