forked from camelpunch/pong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (49 loc) · 1.58 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
<!DOCTYPE html>
<html>
<head>
<title>Pong</title>
<meta charset="utf-8" />
<link rel="Stylesheet" href="style.css" type="text/css" />
</head>
<body>
<h1>Pong.</h1>
<table>
<caption>Scores</caption>
<thead>
<tr>
<th class="player1">Player 1</th>
<th class="player2">Player 2</th>
</tr>
</thead>
<tbody>
<tr>
<td id="score_player1"></td>
<td id="score_player2"></td>
</tr>
</tbody>
</table>
<canvas id="pong" width="800" height="600">
<p>
Upgrade your browser!
</p>
</canvas>
<p>Move mouse up and down to play, click to reset.</p>
<p>
<a href="http://github.com/camelpunch/pong">Source</a> |
<a href="http://blog.andrewbruce.net/pong-in-html5-canvas-yui3-test">Blog Post</a>
</p>
<script type="text/javascript" charset="utf-8" src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
<script type="text/javascript" src="arnie.js"></script>
<script type="text/javascript" src="pong.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2606365-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>