-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
350 lines (332 loc) · 18.7 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>IronPong</title>
<!-- IronPong CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="./styles.css" type="text/css">
<script src="https://kit.fontawesome.com/ea74f168d9.js" crossorigin="anonymous"></script>
</head>
<body id="landing">
<div class="container-fluid">
<div class="row" id="title">
<div class="flip-container" ontouchstart="this.classList.toggle('hover');">
<div class="flipper">
<div class="front">
<img src="./images/pong-logo3.png" height="170px">
</div>
<div class="back">
<img src="./images/pong-logo4.png" height="170px">
</div>
</div>
</div>
</div>
<div class="row" id="sub-title">
<div class="col-12" id="title">
Choose A Mode | <a href="http://avrahm.com/ironpong/highscores.php">View High Score List</a>
</div>
</div>
<div class="row" id="theme-picker">
<div class="col-3 d-flex flex-column">
<button type="button" class="border border-dark classic-background" data-toggle="modal"
data-target="#classic">CLASSIC
</button>
<button type="button" class="border border-dark soccer-background" data-toggle="modal"
data-target="#soccer">
</button>
</div>
<div class="col-6 d-flex align-items-center">
<video autoplay loop id="myVideo">
<source src="./images/pong-video.mp4" type="video/mp4"></video>
</div>
<div class="col-3 d-flex flex-column">
<button type="button" class="border border-dark bball-background" data-toggle="modal"
data-target="#basketball">
</button>
<button type="button" class="border border-dark ballsoffury-background" data-toggle="modal"
data-target="#ballsoffury">
</button>
</div>
</div>
</div>
<!-- Classic Modal -->
<div class="modal fade" id="classic" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLabel">Classic Mode</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="game.html" method="GET">
<div class="modal-body">
<h4>Enter Player Info</h4>
<label id="player1name">Player 1 Name</label>
<input value="" required type="text" id="player1name" name="player1name"
placeholder="Player 1 Name">
<br>
<label id="player2name">Player 2 Name</label>
<input value="Computer" required type="text" id="player2name" name="player2name"
placeholder="Player 2 Name">
<br>
<input type="hidden" id="theme" name="theme" value="classic">
<div class="container" id="instructions">
<div class="options">
<div>Game Options</div>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-dark">
<input type="checkbox" id="singlePlayerMode" name="singlePlayerMode"
value="true"> Single Player
</label>
<label class="btn btn-dark">
<input type="checkbox" id="timedMode" name="timedMode" value="true"> 2 Minutes
Unlimited
</label>
</div>
</div>
<div class="row">
<div class="col-12">
Rules:
<ul>
<li>Select Single Player and go against the computer</li>
<li>Default mode: First to score 10</li>
<li>2 miuntes Unlimited: Player with high score wins</li>
</ul>
</div>
<div class="col-12">
PowerUps
<ul>
<li><img src="./images/powerups/classic1.png"> - Add another ball</li>
<li><img src="./images/powerups/classic2.png"> - Increase ball speed</li>
<li><img src="./images/powerups/classic3.png"> - Increase paddle size</li>
<li><img src="./images/powerups/classic4.png"> - Slow down ball speed</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-dark" href="./main.html" role="button">Start IronPong</button>
</div>
</form>
</div>
</div>
</div>
<!-- Basketball Modal -->
<div class="modal fade" id="basketball" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLabel">Basketball Mode</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="game.html" method="GET">
<div class="modal-body">
<h4>Enter Player Info</h4>
<label id="player1name">Player 1 Name</label>
<input value="" required type="text" id="player1name" name="player1name"
placeholder="Player 1 Name">
<br>
<label id="player2name">Player 2 Name</label>
<input value="Computer" required type="text" id="player2name" name="player2name"
placeholder="Player 2 Name">
<br>
<input type="hidden" id="theme" name="theme" value="basketball">
<div class="container" id="instructions">
<div class="options">
<div>Game Options</div>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-warning">
<input type="checkbox" id="singlePlayerMode" name="singlePlayerMode"
value="true"> Single Player
</label>
<label class="btn btn-warning">
<input type="checkbox" id="timedMode" name="timedMode" value="true"> 2 Minutes
Unlimited
</label>
</div>
</div>
<div class="row">
<div class="col-12">
Rules:
<ul>
<li>Select Single Player and go against the computer</li>
<li>Default mode: First to score 10</li>
<li>2 miuntes Unlimited: Player with high score wins</li>
</ul>
</div>
<div class="col-12">
PowerUps
<ul>
<li><img src="./images/powerups/basketball1.png"> - Add another ball</li>
<li><img src="./images/powerups/basketball2.png"> - Increase ball speed</li>
<li><img src="./images/powerups/basketball3.png"> - Increase paddle size</li>
<li><img src="./images/powerups/basketball4.png"> - Slow down ball speed</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-warning" href="./main.html" role="button">Start IronPong</button>
</div>
</form>
</div>
</div>
</div>
<!-- Soccer Modal -->
<div class="modal fade" id="soccer" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLabel">Soccer Mode</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="game.html" method="GET">
<div class="modal-body">
<h4>Enter Player Info</h4>
<label id="player1name">Player 1 Name</label>
<input value="" required type="text" id="player1name" name="player1name"
placeholder="Player 1 Name">
<div id="twoPlayerDetails">
<label id="player2name">Player 2 Name</label>
<input value="Computer" type="text" id="player2name" name="player2name" placeholder="Player 2 Name">
</div>
<input type="hidden" id="theme" name="theme" value="soccer">
<div class="container" id="instructions">
<div class="options">
<div>Game Options</div>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-success">
<input type="checkbox" id="singlePlayerMode" name="singlePlayerMode"
value="true"> Single Player
</label>
<label class="btn btn-success">
<input type="checkbox" id="timedMode" name="timedMode" value="true"> 2 Minutes
Unlimited
</label>
</div>
</div>
<div class="row">
<div class="col-12">
Rules:
<ul>
<li>Select Single Player and go against the computer</li>
<li>Default mode: First to score 10</li>
<li>2 miuntes Unlimited: Player with high score wins</li>
</ul>
</div>
<div class="col-12">
PowerUps
<ul>
<li><img src="./images/powerups/soccer1.png"> - Add another ball</li>
<li><img src="./images/powerups/soccer2.png"> - Increase ball speed</li>
<li><img src="./images/powerups/soccer3.png"> - Increase paddle size</li>
<li><img src="./images/powerups/soccer4.png"> - Slow down ball speed</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-success" href="./main.html" role="button">Start IronPong</button>
</div>
</form>
</div>
</div>
</div>
<!-- Balls of Fury Modal -->
<div class="modal fade" id="ballsoffury" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLabel">Balls of Fury Mode</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="game.html" method="GET">
<div class="modal-body">
<h4>Enter Player Info</h4>
<label id="player1name">Player 1 Name</label>
<input value="" required type="text" id="player1name" name="player1name"
placeholder="Player 1 Name">
<br>
<label id="player2name">Player 2 Name</label>
<input value="Computer" required type="text" id="player2name" name="player2name"
placeholder="Player 2 Name">
<input type="hidden" id="theme" name="theme" value="ballsoffury">
<div class="container" id="instructions">
<div class="options">
<div>Game Options</div>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-danger">
<input type="checkbox" id="singlePlayerMode" name="singlePlayerMode"
value="true"> Single Player
</label>
<label class="btn btn-danger">
<input type="checkbox" id="timedMode" name="timedMode" value="true"> 2 Minutes
Unlimited
</label>
</div>
</div>
<div class="row">
<div class="col-12">
Rules:
<ul>
<li>Select Single Player and go against the computer</li>
<li>Default mode: First to score 10</li>
<li>2 miuntes Unlimited: Player with high score wins</li>
</ul>
</div>
<div class="col-12">
PowerUps
<ul>
<li><img src="./images/powerups/ballsoffury1.png"> - Add another ball</li>
<li><img src="./images/powerups/ballsoffury2.png"> - Increase ball speed</li>
<li><img src="./images/powerups/ballsoffury3.png"> - Increase paddle size</li>
<li><img src="./images/powerups/ballsoffury4.png"> - Slow down ball speed</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-danger" href="./main.html" role="button">Start IronPong</button>
</div>
</form>
</div>
</div>
</div>
<!-- IronPong JS -->
<script src="./script.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
</body>
</html>