-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
138 lines (131 loc) · 5.37 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
<!doctype html>
<html>
<head>
<title>Quiz</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="assests/style.css">
</head>
<body>
<!-- loading screen -->
<img src="images/loading.svg" id="loader" class="hidden">
<br><br>
<!--Wlcome page-->
<div class="homepage hidden" id="homepage">
<div class="container slideleft align" id="welcome">
<div class="row">
<div class="col-md-12">
<h1 class="display-1 text-center ">
<span class="text-primary">Quiz</span>
<span class="text-danger">App</span>
</h1>
<center class="centout"><button class="btn btn-primary start" id="start" onclick="showCategory()">Start Quiz</button></center>
</div>
</div>
</div>
<!--category selection form-->
<div class="container" id="category-box">
<h1 class="text-center display-2">Select one of the Categories</h1>
<div class="row">
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(22)">Geography</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(11)">Movies</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(20)">Mythology</button>
</div>
</div>
<div class="row">
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(18)">Computers</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(21)">Sports</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(9)">General knowledge</button>
</div>
</div>
<div class="row">
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(23)">History</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(12)">Music</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info" onclick="categorySelection(17)">Nature</button>
</div>
</div>
</div>
<!--difficulty selection-->
<div class="container" id="difficulty-box">
<h1 class="text-center difficulty-text">Select Difficulty</h1>
<div class="row">
<div class="col">
<button class="btn btn-lg btn-info btn-primary" onclick="difficultySelection(0)">Easy</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info btn-warning" onclick="difficultySelection(1)">Medium</button>
</div>
<div class="col">
<button class="btn btn-lg btn-info btn-danger" onclick="difficultySelection(2)">Hard</button>
</div>
</div>
</div>
</div>
<!--Quiz page-->
<div class="quiz hidden" id="quiz">
<div id="result" class="hidden">
<div class="container-fluid">
<div class="display-1 text-sm-center">Your Score :</div>
<div class="row">
<div class="col">
<span class="display-4s point" id="final-correct"></span>
</div>
<div class="col">
<span class="display-4 point" id="final-wrong"></span>
</div>
</div>
</div>
</div>
<div class="container-fluid hidden" id="disp">
<div class="container-fluid">
<div class="row">
<div class="col">
<h1 class="point text-sm-center" id="correct">correct</h1>
</div>
<div class="col">
<h1 class="point hidden" id="wrong">wrong</h1>
</div>
</div>
</div>
<h1 class="display-1" style="text-align:center;">Quiz</h1>
<div class="container-fluid quiz-box">
<h3 class="container-fluid flip-2-hor-top-1 " id="question"></h3>
<div class="row option-list">
<div class="col"><button type="button" class="options" onclick="optionChecker(0)" id="option1"></button></div>
<div class="col"><button type="button" class="options" onclick="optionChecker(1)" id="option2"></button></div>
<div class="col"><button type="button" class="options" onclick="optionChecker(2)" id="option3"></button></div>
<div class="col"><button type="button" class="options" onclick="optionChecker(3)" id="option4"></button></div>
</div>
</div>
<div class="container-fluid">
<button type="button" class="btn btn-primary btn-lg" id="submit" onclick="submit(SelectedOption)">Submit</button>
<button type="button" class="btn btn-primary hidden btn-lg" id="next" onclick="next(x)">Next</button>
</div><br>
<div class="container-fluid">
<button type="button" class="btn btn-primary hidden" id="previous" onclick="previous(x)">Previous</button>
</div>
<script src="assests/script.js"></script>
</div>
</div>
<div style="height: 10vh;width: 100%;"></div>
</body>
</html>