-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (144 loc) · 5.45 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Quiz</title>
<link rel="stylesheet" href="css/quiz.css" />
<link rel="stylesheet" href="css/bootstrap.css" />
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet"
/>
<style></style>
</head>
<body>
<nav></nav>
<div id="home-container">
<form action="" id="setup">
<label for="name">Enter Your Name :)</label>
<input type="text" id="name" autocomplete="off" />
<label for="questions"
>How many questions do you want to attempt?</label
>
<select name="questions" id="questions">
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<label for="type">Question type</label>
<select name="type" id="type">
<option value="mixed">Mixed</option>
<option value="categories">Select categories</option>
</select>
<div class="catagory">
<input type="checkbox" name="select" id="generalKnowledge" checked/>
<label for="generalKnowledge">General Knowledge</label>
<input type="checkbox" name="select" id="scienceTechnology" />
<label for="scienceTechnology">Science and Technology</label>
<input type="checkbox" name="select" id="sports" />
<label for="sports">Sports</label>
<input type="checkbox" name="select" id="moviesEntertainment" />
<label for="moviesEntertainment">Movies and Entertainment</label>
<input type="checkbox" name="select" id="history" />
<label for="history">History</label>
<input type="checkbox" name="select" id="geography" />
<label for="geography">Geography</label>
<input type="checkbox" name="select" id="literature" />
<label for="literature">Literature</label>
<input type="checkbox" name="select" id="mathsLogic" />
<label for="mathsLogic">Maths and Logic</label>
<input type="checkbox" name="select" id="music" />
<label for="music">Music</label>
</div>
<input type="submit" class="submit-btn1" value="Start Quizz" />
</form>
</div>
<div id="quiz-container">
<form id="quiz-form">
<ul id="question-container">
<!-- <li class = "oneque">
<div class="que">
<h3>${question}</h3>
<div class="optcont">
<input type="radio" name="que${i + 1}" id="que${
i + 1
}_option1" class="que${i + 1}_option_1" value="0" />
<label class="quiz-label" for="que${
i + 1
}_option1">${option1}</label>
<input type="radio" name="que${i + 1}" id="que${
i + 1
}_option2" class="que${i + 1}_option_2" value="1" />
<label class="quiz-label" for="que${
i + 1
}_option2">${option2}</label>
<input type="radio" name="que${i + 1}" id="que${
i + 1
}_option3" class="que${i + 1}_option_3" value="2" />
<label class="quiz-label" for="que${
i + 1
}_option3">${option3}</label>
<input type="radio" name="que${i + 1}" id="que${
i + 1
}_option4" class="que${i + 1}_option_4" value="3" />
<label class="quiz-label" for="que${
i + 1
}_option4">${option4}</label>
</div>
</div>
</li> -->
</ul>
</form>
<input
type="submit"
class="submit-btn"
id="quizz-submit"
value="Next Question"
/>
<input
type="reset"
class="submit-btn"
value="Restart Quiz"
id="restart2"
/>
</div>
</div>
<div id="result-container">
<h2>Results</h2>
<h3 id="result-display"></h3>
<div class="colors">
<div class="green"></div>
<div>Correct Answer</div>
<div class="red"></div>
<div>Wrong Answer</div>
<div class="orange"></div>
<div>Not Answered</div>
</div>
<ul id="answersct">
<!-- <li>
<div class="questiondisplay">
<h3>${question}</h3>
<div class="optcont">
<div class="que${i + 1}_option1" class="optionr" >${option1}</div>
<div class="que${i + 1}_option2" class="optionr" >${option2}</div>
<div class="que${i + 1}_option3" class="optionr" >${option3}</div>
<div class="que${i + 1}_option4" class="optionr" >${option4}</div>
</div>
</div>
</li> -->
</ul>
<input
type="reset"
class="submit-btn"
value="Restart Quiz"
id="restart1"
/>
</div>
</body>
<script src="js/quizz.js"></script>
<script src="js/data.js"></script>
</html>