generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
556 lines (533 loc) · 34.4 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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8" />
<meta name = "viewport" content="width=device-width, initial-scale=1.0">
<meta name = "application-name" content="Guinn-ius? Team 2 many Pints Hackathon Quiz">
<meta name = "keywords" content = "Guinness, St Patricks Day, Quiz, Hackathon, Code Institute" />
<meta name = "description" content = "Team 2 Many Pints entry for St Patricks day CI Hackathon 2021." />
<meta name = "author" content = "Bruno Dias, Callan Maguire, Mark Smyth, Sam Green, Sam Laubscher, Yuriy Kovalchuk" />
<title>Team Two Many Pints</title>
<link rel="shortcut icon" href="assets/images/favicon/favicon.ico" type="image/x-icon">
<link rel="icon" href="assets/images/favicon/favicon.ico" type="image/x-icon">
<!--linking to bootstrap, fontawesome & to style.css -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css"
integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<article>
<header>
<nav class="navbar sticky-top navbar-expand-lg bg-warning">
<div class="container-fluid navbar">
<a class="navbar-brand" href="https://samlaubscher.github.io/Team-2-Hackathon-St-Paddys-Festi-Quiz/index.html">
<img src="assets/images/Hackathon image.png" class="logo" width="100" height="100" alt="">
<span>Guinn-ius?</span></a>
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"><i class="fas fa-bars"></i></span>
</button>
<div class="d-lg-flex justify-content-lg-end collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="https://samlaubscher.github.io/Team-2-Hackathon-St-Paddys-Festi-Quiz/index.html">Restart</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="https://github.com/samlaubscher/Team-2-Hackathon-St-Paddys-Festi-Quiz" target="_blank">Repo</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://hackathon.codeinstitute.net/hackathon/5/" target="_blank">Hackathon 2021</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<!--the carousel that explains how the game is to be played -->
<div id="carouselExampleInterval" class="carousel slide mt-4" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="10000">
<img src="assets/images/1.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item" data-bs-interval="2000">
<img src="assets/images/2.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="assets/images/3.png" class="d-block w-100" alt="...">
</div>
</div>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleInterval"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div id="start-quiz-section" class="container-fluid">
<div>
<div class="row">
<div id="enter-name-container" class="col-12 col-sm-6 offset-sm-3 col-md-4 offset-md-4 text-center my-5 bg-light rounded">
<!-- This will be centered and visible for first time visitors, then hidden when name is entered and main-landing-content will be visible -->
<form class="p-4" action="">
<p>Your Name:</p>
<input id="name-input" type="text">
<div>
<span id="error">
</span>
</div>
<button id="enter-name-btn" class="nextQuestionButton rounded-pill" disabled>
<img src="assets/images/goldpot.png" alt="Gold-Pot"> Start</button>
<!--<a href="https://iconscout.com/icons/gold-pot" target="_blank">Gold Pot Icon</a> by <a href="https://iconscout.com/contributors/bzzricon" target="_blank">
BZZRICON Studio</a> -->
</form>
</div>
</div>
</div>
<div id="main-landing-container" class="hidden">
<!-- this will be hidden in place of enter-name-container if username not in session, user enters name, then this is shown to allow them to play -->
<div class="row">
<div class="col-12 text-center mt-4">
<h2>Are you ready <strong><span id="name"></span></strong>?</h2>
</div>
</div>
<div class="row">
<div class="col-12 text-center mb-5 mt-2">
<a class="btn btn-success rounded-pill px-4" href="#">Play Game</a>
</div>
</div>
<div class="row">
<div class="col-12 col-md-8 offset-md-2">
<div class="bg-light my-5 p-5 text-center">
<h2>Leaderboard</h2>
</div>
</div>
</div>
</div>
</div>
<section id="round-1">
<!-- Section 1 Quiz -->
<div id="questionsCarousel-a" class="carousel slide questionCarousel section1" data-bs-ride="carousel"
data-bs-interval="false">
<div class="carousel-inner">
<h2>Round 1: History</h2>
<div class="carousel-item active">
<div id="a-0" class="question">
<h3> St Patrick is considered to be from ____.</h3>
<p class="questNumber text-center">(1/5)</p>
<hr>
<p class="answer">A. Ireland</p>
<p class="answer">B. Scotland</p>
<p data-answer="true" class="answer">C. Wales</p>
<p class="answer">D. England</p>
<!--<a href="https://iconscout.com/icons/clover" target="_blank">Clover Icon</a> by <a href="https://iconscout.com/contributors/bacontaco">
Jesus C. Romero</a> on <a href="https://iconscout.com">Iconscout</a>-->
</div>
</div>
<div class="carousel-item">
<div id="a-1" class="question">
<h3> St Patrick was captured and enslaved at the age of ____.</h3>
<p class="questNumber text-center">(2/5)</p>
<hr>
<p class="answer">A. 14 years</p>
<p class="answer">B. 15 years</p>
<p data-answer="true" class="answer">C. 16 years</p>
<p class="answer">D. 18 years</p>
</div>
</div>
<div class="carousel-item">
<div id="a-2" class="question">
<h3> St Patrick is said to have spent ____ as a slave before escaping.</h3>
<p class="questNumber text-center">(3/5)</p>
<hr>
<p data-answer="true" class="answer">A. 6 years</p>
<p class="answer">B. 7 years</p>
<p class="answer">C. 8 years</p>
<p class="answer">D. 9 years</p>
</div>
</div>
<div class="carousel-item">
<div id="a-3" class="question">
<h3> St. Patrick is credited with bringing ____ to Ireland.</h3>
<p class="questNumber text-center">(4/5)</p>
<hr>
<p class="answer">A. Scientology</p>
<p data-answer="true" class="answer">B. Christianity</p>
<p class="answer">C. Protestantism</p>
<p class="answer">D. Buddhism</p>
</div>
</div>
<div class="carousel-item">
<div id="a-4" class="question">
<h3> St. Patrick is said to have banished _____ out of Ireland.</h3>
<p class="questNumber text-center">(5/5)</p>
<hr>
<p class="answer">A. Leprechauns</p>
<p data-answer="true" class="answer">B. Snakes</p>
<p class="answer">C. Spiders</p>
<p class="answer">D. Mice</p>
</div>
</div>
</div>
</div>
</section>
<section id="round-2">
<!-- Section 2 Quiz -->
<div id="questionsCarousel-b" class="carousel slide questionCarousel section2" data-bs-ride="carousel"
data-bs-interval="false">
<div class="carousel-inner">
<h2>Round 2: In Ireland, America, or both</h2>
<div class="carousel-item active">
<div id="b-0" class="question">
<h3> Where bars serve green beers to customers to celebrate St Patrick's day.</h3>
<p class="questNumber text-center">(1/5)</p>
<hr>
<p class="answer">A. Ireland</p>
<p data-answer="true" class="answer">B. America</p>
<p class="answer">C. Both</p>
<!--<a href="https://iconscout.com/icons/clover" target="_blank">Clover Icon</a> by <a href="https://iconscout.com/contributors/bacontaco">
Jesus C. Romero</a> on <a href="https://iconscout.com">Iconscout</a>-->
</div>
</div>
<div class="carousel-item">
<div id="b-1" class="question">
<h3> Where shamrocks and green clothing are worn to celebrate St Patrick.</h3>
<p class="questNumber text-center">(2/5)</p>
<hr>
<p class="answer">A. Ireland</p>
<p class="answer">B. America</p>
<p data-answer="true" class="answer">C. Both</p>
</div>
</div>
<div class="carousel-item">
<div id="b-2" class="question">
<h3> Where the St Patrick's day is marked as a public holiday.</h3>
<p class="questNumber text-center">(3/5)</p>
<hr>
<p data-answer="true" class="answer">A. Ireland</p>
<p class="answer">B. America</p>
<p class="answer">C. Both</p>
</div>
</div>
<div class="carousel-item">
<div id="b-3" class="question">
<h3> Large and small parades are hosted all over the country.</h3>
<p class="questNumber text-center">(4/5)</p>
<hr>
<p data-answer="true" class="answer">A. Ireland</p>
<p class="answer">B. America</p>
<p class="answer">C. Both</p>
</div>
</div>
<div class="carousel-item">
<div id="b-4" class="question">
<h3> Where rivers are turned green to celebrate the day.</h3>
<p class="questNumber text-center">(5/5)</p>
<hr>
<p class="answer">A. Ireland</p>
<p data-answer="true" class="answer">A. America</p>
<p class="answer">A. Both</p>
</div>
</div>
</div>
</div>
</section>
<section id="round-3">
<!-- Section 3 Quiz -->
<div id="questionsCarousel-c" class="carousel slide questionCarousel section3" data-bs-ride="carousel"
data-bs-interval="false">
<div class="carousel-inner">
<h2>Round 3: Irish Drinking Culture</h2>
<div class="carousel-item active">
<div id="c-0" class="question">
<h3> ____ is known as Ireland's most famous alcoholic beverage.</h3>
<p class="questNumber text-center">(1/5)</p>
<hr>
<p class="answer">A. Heineken</p>
<p class="answer">B. Bulmers</p>
<p data-answer="true" class="answer">C. Guinness</p>
<p class="answer">D. Carlsberg</p>
<!--<a href="https://iconscout.com/icons/clover" target="_blank">Clover Icon</a> by <a href="https://iconscout.com/contributors/bacontaco">
Jesus C. Romero</a> on <a href="https://iconscout.com">Iconscout</a>-->
</div>
</div>
<div class="carousel-item">
<div id="c-1" class="question">
<h3> The famous expression "a pint of plain" refers to which alcoholic beverage.</h3>
<p class="questNumber text-center">(2/5)</p>
<hr>
<p class="answer">A. A pint of beer</p>
<p data-answer="true" class="answer">B. A pint of stout</p>
<p class="answer">C. A pint of cider</p>
<p class="answer">D. A pint of vodka</p>
</div>
</div>
<div class="carousel-item">
<div id="c-2" class="question">
<h3> ____ is Ireland's most famous whiskey.</h3>
<p class="questNumber text-center">(3/5)</p>
<hr>
<p data-answer="true" class="answer">A. Jameson</p>
<p class="answer">B. Jack Daniels</p>
<p class="answer">C. Proper Twelve</p>
<p class="answer">D. Lambay</p>
</div>
</div>
<div class="carousel-item">
<div id="c-3" class="question">
<h3> ____ million pints of Guinness are consumed globally on St Patrick's Day.</h3>
<p class="questNumber text-center">(4/5)</p>
<hr>
<p class="answer">A. 10</p>
<p data-answer="true" class="answer">B. 13</p>
<p class="answer">C. 16</p>
<p class="answer">D. 19</p>
</div>
</div>
<div class="carousel-item">
<div id="c-4" class="question">
<h3> The legal drinking age in Ireland is ___.</h3>
<p class="questNumber text-center">(5/5)</p>
<hr>
<p class="answer">A. 16</p>
<p data-answer="true" class="answer">A. 18</p>
<p class="answer">A. 19</p>
<p class="answer">D. 21</p>
</div>
</div>
</div>
</div>
</section>
<section id="round-4">
<!-- Section 4 Quiz -->
<div id="questionsCarousel-d" class="carousel slide questionCarousel" data-bs-ride="carousel"
data-bs-interval="false">
<div class="carousel-inner">
<h2>Round 4: Irish Slang</h2>
<div class="carousel-item active">
<div id="d-0" class="question">
<h3> I'm going to the jacks, means?</h3>
<p class="questNumber text-center">(1/5)</p>
<hr>
<p class="answer">A. I'm going to the bar.</p>
<p data-answer="true" class="answer">B. I'm going to the toilet.</p>
<p class="answer">C. I'm going to work.</p>
<p class="answer">D. I'm going to meet friends.</p>
<!--<a href="https://iconscout.com/icons/clover" target="_blank">Clover
Jesus C. Romero</a> on <a href="https://iconscout.com">Iconscout</a>-->
</div>
</div>
<div class="carousel-item">
<div id="d-1" class="question">
<h3> I'm buzzin, means?</h3>
<p class="questNumber text-center">(2/5)</p>
<hr>
<p class="answer">A. I'm very drunk</p>
<p class="answer">B. I'm very angry.</p>
<p class="answer">C. I'm very hungry.</p>
<p data-answer="true" class="answer">D. I'm very excited.</p>
</div>
</div>
<div class="carousel-item">
<div id="d-2" class="question">
<h3> He is a ride, means?</h3>
<p class="questNumber text-center">(3/5)</p>
<hr>
<p class="answer">A. He is an idiot.</p>
<p data-answer="true" class="answer">B. He's very good-looking</p>
<p class="answer">C. He is not trustworthy.</p>
<p class="answer">D. He has a car.</p>
</div>
</div>
<div class="carousel-item">
<div id="d-3" class="question">
<h3> She is locked, means?</h3>
<p class="questNumber text-center">(4/5)</p>
<hr>
<p data-answer="true" class="answer">A. She is very drunk.</p>
<p class="answer">B. She is very stubborn.</p>
<p class="answer">C. She is very self-centred.</p>
<p class="answer">D. She is very focused.</p>
</div>
</div>
<div class="carousel-item">
<div id="d-4" class="question">
<h3> To have the craic, means?</h3>
<p class="questNumber text-center">(5/5)</p>
<hr>
<p class="answer">A. Have dinner</p>
<p class="answer">A. Have an argument.</p>
<p data-answer="true" class="answer">A. Have fun.</p>
<p class="answer">D. Have a flu.</p>
</div>
</div>
</div>
</div>
</section>
<section>
<!-- MODAL 1 -->
<div class="modal fade" id="results-1" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<div class="container d-flex justify-content-center">
<h2 class="modal-title" id="results-1-head">You Scored </h2>
</div>
<!-- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="close"></button> -->
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-12 text-center">
<p>No pints for you I'm afraid</p>
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<img class="modal-image" src="assets/images/sad-leprechaun.png" alt="">
</div>
</div>
</div>
</div>
<div class="modal-footer d-flex justify-content-between">
<a href="https://samlaubscher.github.io/Team-2-Hackathon-St-Paddys-Festi-Quiz/"
class="btn btn-success d-flex"><i class="fas fa-redo"></i> Retry</a>
<button type="button" class="btn btn-warning d-flex" data-bs-dismiss="modal"
aria-label="close">Close</button>
</div>
</div>
</div>
</div>
<!-- MODAL 2 -->
<div class="modal fade" id="results-2" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel2" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<div class="container d-flex justify-content-center">
<h2 class="modal-title" id="results-2-head">You Scored </h2>
</div>
<!-- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="close"></button> -->
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-12 text-center">
<p>You deserve at least half a pint</p>
</div>
<div class="col-12 text-center">
<img src="assets/images/guitar-leprechaun.png" alt="">
</div>
</div>
</div>
<div class="modal-footer d-flex justify-content-between">
<a href="https://samlaubscher.github.io/Team-2-Hackathon-St-Paddys-Festi-Quiz/"
class="btn btn-success d-flex"><i class="fas fa-redo"></i> Retry</a>
<button type="button" class="btn btn-warning d-flex" data-bs-dismiss="modal"
aria-label="close">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- MODAL 3 -->
<div class="modal fade" id="results-3" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel2" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<div class="container d-flex justify-content-center">
<h2 class="modal-title" id="results-3-head">You Scored </h2>
</div>
<!-- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="close"></button> -->
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-12 text-center">
<p>Legend! Pour yourself a full pint!</p>
</div>
<div class="col-12 text-center">
<img src="assets/images/pint-leprechaun.png" alt="">
</div>
</div>
</div>
<div class="modal-footer d-flex justify-content-between">
<a href="https://samlaubscher.github.io/Team-2-Hackathon-St-Paddys-Festi-Quiz/"
class="btn btn-success d-flex"><i class="fas fa-redo"></i> Retry</a>
<button type="button" class="btn btn-warning d-flex" data-bs-dismiss="modal"
aria-label="close">Close</button>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="container-fluid">
<div id="footer-details" class="row footer-details">
<!--info footer-->
<div class="col-sm-12 col-md-4 info">
<p><a href="https://codeinstitute.net/" target="_blank">Code Institute</a></p>
<p><a href="https://hackathon.codeinstitute.net/" target="_blank">Hacktown 2021</a></p>
<p><i class="far fa-calendar-check"></i> 17/03/2021</p>
<p><a href="https://hackathon.codeinstitute.net/teams/23/" target="_blank">TEAM
2 MANY PINTS!</a></p>
</div>
<!--small logo footer-->
<div class="col-sm-12 col-md-4 text-center smlogo">
<ul class="list-inline small-logo">
<li class="list-inline-item">
<p>#ST PADDYS DAY</p>
<p><i class="fas fa-beer"></i></p>
<span class="sr-only">Title_Logo</span>
</li>
</ul>
</div>
<!--social-links-->
<div class="col-sm-12 col-md-4 text-center social">
<ul class="list-inline social-links">
<li class="list-inline-item">
<a href="https://github.com/samlaubscher/Team-2-Hackathon-St-Paddys-Festi-Quiz" target="_blank">
<i class="fab fa-github" aria-hidden="true"></i>
<span class="sr-only">Github</span>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.instagram.com/stpatricksfestival/" target="_blank">
<i class="fab fa-instagram" aria-hidden="true"></i>
<span class="sr-only">Instagram</span>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.facebook.com/hashtag/stpatricksday2021" target="_blank">
<i class="fab fa-facebook" aria-hidden="true"></i>
<span class="sr-only">Facebook</span>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.youtube.com/results?search_query=saint+patrick%27s+day" target="_blank">
<i class="fab fa-youtube" aria-hidden="true"></i>
<span class="sr-only">Youtube</span>
</a>
</li>
</ul>
</div>
</div>
</footer>
</article>
<!-- scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
</body>
</html>