forked from mvbattista/jeopardy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
332 lines (274 loc) · 13.3 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Latest compiled and minified CSS -->
<!-- Dynamic copy
<link rel="stylesheet" type="text/css" href="./bootstrap/dist/css/bootstrap.min.css" />
-->
<!-- Static copy -->
<link rel="stylesheet" type="text/css" href="./bootstrap-static/3.3.5/css/bootstrap.min.css" />
<!-- Optional theme -->
<!-- Dynamic copy
<link rel="stylesheet" type="text/css" href="./bootstrap/dist/css/bootstrap-theme.min.css" />
-->
<!-- Static copy -->
<link rel="stylesheet" type="text/css" href="./bootstrap-static/3.3.5/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="./css/jeopardy.css" />
<!-- Latest compiled and minified jQuery -->
<!-- Dynamic copy
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
-->
<!-- Static copy -->
<script type="text/javascript" src="./js/jquery-latest.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<!-- Dynamic copy
<script type="text/javascript" language="Javascript" src="./bootstrap/dist/js/bootstrap.min.js"></script>
-->
<!-- Static copy -->
<script type="text/javascript" language="Javascript" src="./bootstrap-static/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" language="Javascript" src="./js/jeopardy.js"></script>
<title>HTML Jeopardy</title>
</head>
<body>
<div class="panel panel-default">
<div class="panel-heading" id="main-board-categories"></div>
<div class="panel-body" id="main-board"></div>
<div class="panel-footer">
<div class="col-md-4" id="player-1-score-div">
<h4>Red: <span id="player-1-score">$0</span></h4>
</div>
<div class="col-md-4" id="player-2-score-div">
<h4>Blue: <span id="player-2-score">$0</span></h4>
</div>
<div class="col-md-4" id="player-3-score-div">
<h4>Green: <span id="player-3-score">$0</span></h4>
</div>
<div class="clearfix"></div>
</div>
<div class="panel-footer">
<div class="col-md-4">
<button type="button" class="btn btn-info" id="score-adjust">Adjust Scores</button>
</div>
<div class="col-md-4 text-center">
<h4 id="control-info">Control: <span id="control-player"></span></h4>
</div>
<div class="col-md-4">
<button type="button" class="btn btn-info pull-right" id="next-round">Go to next round</button>
<button type="button" class="btn btn-info pull-right" id="end-round">End Round</button>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="modal fade" id="question-modal" role="dialog" aria-labelledby="question-modal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" id="question-modal-dialog">
<div class="modal-content" id="question-modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> -->
<h4 class="modal-title text-center category-text" id="modal-answer-title">Modal title</h4>
</div>
<div class="modal-body" id="question-modal-body">
<p id="question" class="question-text text-center"></p>
<div id="question-image" class="text-center"></div>
</div>
<div id="answer" class="text-center modal-footer">
<div id="answer-text" class="text-center"></div>
<div id="answer-buttons" class="text-center">
<button type="button" class="btn btn-primary" id="answer-show-button">Show</button> <button type="button" class="btn btn-primary" id="answer-close-button">Close</button>
</div>
</div><!-- /.answer -->
<div id="scoring-buttons" class="text-center modal-footer">
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger score-button" id="p1-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P1
</button>
<button type="button" class="btn btn-success score-button" id="p1-right-button">
<span class="glyphicon glyphicon-ok"></span>P1
</button>
</div>
</div>
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger score-button" id="p2-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P2
</button>
<button type="button" class="btn btn-success score-button" id="p2-right-button">
<span class="glyphicon glyphicon-ok"></span>P2
</button>
</div>
</div>
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger score-button" id="p3-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P3
</button>
<button type="button" class="btn btn-success score-button" id="p3-right-button">
<span class="glyphicon glyphicon-ok"></span>P3
</button>
</div>
</div>
</div><!-- /.scoring-buttons -->
<div id="question-timer" class="text-center modal-footer">
<div id="timer-grid" class="text-center">
<div class="timer-square timer-set-1"></div>
<div class="timer-square timer-set-2"></div>
<div class="timer-square timer-set-3"></div>
<div class="timer-square timer-set-4"></div>
<div class="timer-square timer-set-5"></div>
<div class="timer-square timer-set-4"></div>
<div class="timer-square timer-set-3"></div>
<div class="timer-square timer-set-2"></div>
<div class="timer-square timer-set-1"></div>
</div>
</div><!-- /.timer -->
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="score-adjust-modal" role="dialog" aria-labelledby="score-adjust-modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title text-center">Adjust Scores</h4>
</div>
<div id="adjust-score-input-div" class="modal-body text-center">
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Player 1 Score" id="score-player-1-input" />
</div>
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Player 2 Score" id="score-player-2-input" />
</div>
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Player 3 Score" id="score-player-3-input" />
</div>
<div class="clearfix"></div>
</div>
<div class="modal-header">
<h4 class="modal-title text-center">Adjust Control</h4>
</div>
<div id="adjust-control-input-div" class="modal-body text-center">
<div class="control-button-group col-md-4">
<label class="radio-inline"><input type="radio" placeholder="Player 1 Control" id="control-player-1-input"
name="control-input" value="1"/></label>
</div>
<div class="control-button-group col-md-4">
<label class="radio-inline"><input type="radio" placeholder="Player 2 Control" id="control-player-2-input"
name="control-input" value="2"/></label>
</div>
<div class="control-button-group col-md-4">
<label class="radio-inline"><input type="radio" placeholder="Player 3 Control" id="control-player-3-input"
name="control-input" value="3"/></label>
</div>
<div class="clearfix"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" id="score-adjust-save">
Save and Close
</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="game-load-modal" role="dialog" aria-labelledby="game-load-modal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" id="game-load-modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title text-center">Please select a game file to upload</h4>
</div>
<div class="modal-body text-center" id="game-load-logo-div">
<img src="./images/jeopardy_logo.jpg" id="game-load-logo-img">
</div>
<div class="modal-body text-center" id="game-load-input-div">
<input type="file" id="input-file">
<button type="button" class="btn btn-primary" id="game-load-input-button">Load Game</button>
<button type="button" class="btn btn-danger" id="kill-music-button">Kill Music </button>
</div>
<div class="modal-footer">
<p class="bg-danger" id="game-load-error" aria-hidden="true"></p>
</div>
</div>
</div>
</div>
<div class="modal fade" id="final-jeopardy-modal" role="dialog" aria-labelledby="final-jeopardy-modal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header text-center">
<button type="button" class="btn btn-primary" id="final-answer-show-button">Show</button>
<h4 class="modal-title text-center" id="final-jeopardy-modal-answer">Modal title</h4>
</div>
<div id="final-jeopardy-score-input-div" class="modal-body text-center">
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Red Wager" id="wager-player-1-input" />
</div>
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Blue Wager" id="wager-player-2-input" />
</div>
<div class="score-button-group col-md-4">
<input type="text" class="form-control" placeholder="Green Wager" id="wager-player-3-input" />
</div>
<div class="clearfix"></div>
</div>
<div id="final-scoring-buttons" class="text-center modal-footer">
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger final-score-button" id="final-p1-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P1
</button>
<button type="button" class="btn btn-success final-score-button" id="final-p1-right-button">
<span class="glyphicon glyphicon-ok"></span>P1
</button>
</div>
</div>
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger final-score-button" id="final-p2-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P2
</button>
<button type="button" class="btn btn-success final-score-button" id="final-p2-right-button">
<span class="glyphicon glyphicon-ok"></span>P2
</button>
</div>
</div>
<div class="score-button-group">
<div class="col-md-4">
<button type="button" class="btn btn-danger final-score-button" id="final-p3-wrong-button">
<span class="glyphicon glyphicon-remove"></span>P3
</button>
<button type="button" class="btn btn-success final-score-button" id="final-p3-right-button">
<span class="glyphicon glyphicon-ok"></span>P3
</button>
</div>
</div>
</div><!-- /.scoring-buttons -->
<div class="modal-footer text-center">
<button type="button" class="btn btn-primary" data-dismiss="modal" id="final-score-close">
Close
</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="daily-double-modal" role="dialog" aria-labelledby="daily-double-modal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" id="daily-double-modal-dialog">
<div class="modal-content" id="daily-double-modal-content">
<div class="modal-header">
<h4 class="modal-title text-center" id="daily-double-modal-title">Modal title</h4>
</div>
<div class="modal-body text-center">
<img src="./images/daily_double.jpg" id="daily-double-logo-img">
</div>
<div id="adjust-score-input-div" class="modal-body text-center col-md-4 col-md-offset-4">
<input type="text" class="form-control" placeholder="Daily Double Wager" id="daily-double-wager-input" />
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="daily-double-wager">
Make Wager
</button>
</div>
</div>
</div>
</div>
</body>
</html>