-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
129 lines (87 loc) · 3.14 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>
<head>
<style type="text/css">
.score_table, .score_table td, .score_table th {
border: 1px solid black;
text-align: center;
}
#rank1 {
background-color: gold;
font-weight: bold;
}
#rank2 {
background-color: silver;
font-weight: bold;
}
#rank3 {
background-color: rgba(205, 133, 63, 1);
font-weight: bold;
}
.change_range {
color: blue;
text-decoration: underline;
cursor: hand;
}
</style>
<link rel="stylesheet" href="./css/real-world.css"></link>
</head>
<body>
<div style="width: 1450px; height: 520px">
<span style="width:800px; float:left; margin-bottom: 5px">
<input type="checkbox" id="music" checked>Music</input>
<input type="checkbox" id="sounds" checked>Sounds</input>
<input type="checkbox" id="media" checked>Media</input>
<input type="checkbox" id="pause">Pause</input>
<span style="float:right">Your Name: <input id="name" type="text" value=""></input></span>
<video id="vid" width="800" height="500" style="display:none"></video>
<canvas id="canvas" width="800" height="500"></canvas>
</span>
<div id="table" style="float:right" >
<table class="score_table" style="width: 600px;border:1px solid black;">
<caption>TOP SCORES</caption>
<tr><td>Rank</td><td>Name</td><td>Score</td></tr>
<tr><td></td><td></td><td></td></tr>
</table>
<span id="previous" class="change_range">previous</span> <span id="next" class="change_range">next</span>
</div>
</div>
<div style="width: 800px; clear:left">
<!-- input type="text" value=""></input> -->
<div>Score: <span id="score">0</span>
<span style="float:right"><a href="./media/video/demo.ogg">Click here for a demo</a></span>
<span class="blink" id="secret_code" style="display: none; color: red; width:530px; text-align:center">SECRET CODE UNLOCKED! (SEE BELOW)</span>
</div>
<div>Top Score: <span id="topscore">0</span></div>
<div id="text">
<p>
<table>
<tr><td style="font-weight:bold">Instructions:</td><td>Use Both hands as follows to avoid the obstacles. The longer you survive, the higher your score!</td></tr>
<tr><td></td><td><span style="font-weight:bold; color:red">Left Hand: </span> Move long distances using <b>"W", "A", "S", "D" keys</b>.</td></tr>
<tr><td></td><td><span style="font-weight:bold; color:red">Right Hand: </span> Move short distances using the <b>arrow keys.</b></td></tr>
</table>
</p>
<table>
<tr><td style="font-weight:bold">Shortcuts:</td><td>-Previous music track: 'q'</td></tr>
<tr><td></td><td>-Next music track: 'e'</td></tr>
<tr><td></td><td>-Pause game: 'Space'</td></tr>
<tr><td></td><td id=shortcut1></td></tr>
<tr><td></td><td id=shortcut2></td></tr>
<tr><td></td><td id=shortcut3></td></tr>
<tr><td></td><td id=shortcut4></td></tr>
</table>
<p style="margin-top:100px">
<audio id="audio"></audio>
</p>
<p>
<audio id="audio1"></audio>
</p>
<p>
<audio id="audio2"></audio>
</p>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="js/playlist.js"></script>
<script src="js/game.js"></script>
</body>
</html>