This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (117 loc) · 2.6 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
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype HTML>
<html>
<head>
<meta charset=utf-8>
<meta name="author" content="Juda Kaleta <[email protected]>">
<meta content="index, follow" name="robots">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>PsychoPong</title>
<link href="default.css" rel="stylesheet" type="text/css" />
<script src="game.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27964659-1']);
_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>
</head>
<body>
<div id="about">
<h1>PsychoPong</h1>
<p>PsychoPong is a remake of an old DOS game. It is game for two
players. 10 goals is enought for win...</p>
<div id="playera">
<h2>Player A:</h2>
<table>
<tr>
<td>
<div class="key">
a
</div>
</td>
<td>
<div class="key">
s
</div>
</td>
</tr>
<tr>
<td>up</td>
<td>down</td>
</tr>
</table>
</div>
<div id="playerb">
<h2>Player B:</h2>
<table>
<tr>
<td>
<div class="key">
k
</div>
</td>
<td>
<div class="key">
l
</div>
</td>
</tr>
<tr>
<td>up</td>
<td>down</td>
</tr>
</table>
</div>
<hr class="clear">
<div class="start" id="start">
Start game!
</div>
</div>
<div id="score">
<h2 class="a">
Player A:
<span class="A">0</span>
</h2>
<h2 class="b">
Player B:
<span class="B">0</span>
</h2>
</div>
<div id="end">
<p>Player <span></span> won!</p>
<div class="start" id="reload">
Play again!
</div>
</div>
<hr class="clear">
<canvas id="game" width=300 height=300>
You need newer browser. Try last version of Chrome or Firefox.
</canvas>
<div id="footer">
<a href="http://blog.glor.cz">Juda Kaleta</a> - <a href="http://himio.glor.cz">HIMIO</a>
</div>
<script>
game = PsychoPong.init({
canvas : "game",
});
$("#start").click(function() {
$("#about").slideUp();
$("#score").show();
$("#game").show();
game.start();
});
$("#reload").click(function() {
location.reload();
});
</script>
</body>
</html>