-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (106 loc) · 5.34 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trivia Game</title>
<!-- Add iDiaz favicon -->
<link rel="icon" href="./static/idiaz_white-favicon.png">
<!-- Link Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<!-- Link Bootstrap JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<!-- Linking my own CSS -->
<link rel="stylesheet" type="text/css" href="./assets/css/style.css">
</head>
<body>
<br>
<br>
<br>
<div class="container" style="text-align: center;">
<div class="row">
<div class="col-2"></div>
<div class="col-8">
<!-- ========= WELCOME SCREEN ========= -->
<div id="welcome">
<img src="http://triviabrothers.com/wp-content/uploads/2018/05/logo_final.png" alt="Copyright http://triviabrothers.com/"
id="imageStart">
<p>
<h2>Set your challenge:</h2>
</p>
<div class="slidecontainer">
<input type="range" min="5" max="50" value="10" class="slider" id="questionRange">
<div id="questionSet">
<h1>10 questions</h1>
</div>
</div>
<br>
<br>
<div>
<button type="button" class="btn btn-warning btn-lg mb-3" id="start">LETS PLAY!!!</button><br>
</div>
</div>
<!-- ========= STRUCTURE OF THE GAME ========= -->
<div id="game" style="display:none;">
<!-- <div id="game"> -->
<div>
<div id="timer">50 seconds left!</div>
</div>
<br>
<div id="questionBoard">
<h1 id="questionTitle">Question</h1>
<h3 id="question">Question text goes here</h3>
</div>
<br>
<div>
<button type="button" class="btn btn-light btn-sm mb-3 answer" id="ans1">Answer1</button><br>
<button type="button" class="btn btn-light btn-sm mb-3 answer" id="ans2">Answer2</button><br>
<button type="button" class="btn btn-light btn-sm mb-3 answer" id="ans3">Answer3</button>
</div>
</div>
<!-- ========= END OF GAME SCREEN ========= -->
<div id="endOfGame" style="display:none;">
<!-- <div id="endOfGame"> -->
<div>
<img src="http://triviabrothers.com/wp-content/uploads/2018/05/logo_final.png" width="120px"
alt="Copyright http://triviabrothers.com/" id="imageEnd">
</div>
<div style="margin-top: 50px;">
<h1>Congratulations!</h1>
<br>
<h3>You made it through all your questions.<br>Here are you stats:</h3>
</div>
<div id="stats" style="margin-top: 30px;">
<b>Correct answers:</b> " + wins + "<br>
<b>Incorrect answers:</b> " + loss + "<br>
<b>Accuracy:</b> " + ((wins / questionCount) * 100).toFixed(2) + "%"
</div>
<div style="margin-top: 30px;">
<button type="button" class="btn btn-warning btn-lg mb-3" id="again">LETS PLAY AGAIN!!!</button><br>
</div>
</div>
<!-- ====================================== -->
</div>
<div class="col-2"></div>
</div>
</div>
<!-- ========= OFFICIAL FOOTER ========= -->
<div class="fixed-bottom" id="footerNav">
<div id="footer">
<p>Copyright © 2008 <strong>JDI</strong>. All Rights Reserved.<br>
For more info check <a href="http://www.idiaz.ca" style="color:rgb(211, 211, 211);" target="_none">www.idiaz.ca</a>
or reach <a href="mailto:[email protected]" style="color:rgb(211, 211, 211);">[email protected].</a></p>
</div>
</div>
<!-- Load the question object -->
<script src="./assets/javascript/questions.js"></script>
<!-- Game script -->
<script src="./assets/javascript/app.js"></script>
</body>
</html>