-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
73 lines (51 loc) · 1.46 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
<!doctype html>
<html>
<head>
<title>HTML5 Air Hockey Game</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.hotkeys.js"></script>
<script type="text/javascript" src="js/key_status.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="wrapper">
<h1 class="header">HTML5 Canvas Air Hockey Game</h1>
<canvas id="canvas" width="480" height="320" tabindex="1"></canvas>
<table id="info" cellpadding="5" cellspacing="5">
<tr>
<td>Level:</td>
<td>
<select id="level" onchange="level();">
<option value="30">1</option>
<option value="60">2</option>
<option value="90">3</option>
<option value="120">4</option>
<option value="150">5</option>
</select>
</td>
</tr>
<tr>
<td>Score:</td>
<td>
<div id="points"></div>
</td>
</tr>
<tr>
<td>
<input type="button" id="start" onclick="start();" value="Start" />
</td>
<td>
<input type="button" onclick="window.location.href=window.location.href;" value="Restart" />
</td>
</tr>
</table>
</div>
<div id="footer">
<p>
BEST VIEWED ON -webkit- AND -moz- SUPPORTED BROWSERS
</p>
</div>
<script type="text/javascript" src="js/game.js"></script>
</body>
</html>