-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathattempt_quiz.html
254 lines (249 loc) · 8.09 KB
/
attempt_quiz.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--<link rel="stylesheet" href="attempt_quiz_css.css" />-->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Attempt a Quiz</title>
<style>
/*ANEESH SUBUDHI 19BCT0038 MEHUL RANA 19BCT0033 PRITH SHARMA 19BCT0097*/
main {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("img/bg.jpg");
background-position: center;
background-size: cover;
/*height: 100%;
width: 100%;*/
}
/*.main_div {
}*/
.category_div,
.trending_div,
.quizlist_div {
text-align: center;
color: white;
padding: 20px;
margin: 20px;
margin-top: 40px;
border: 1px none;
border-radius: 20px;
background-color: rgba(27, 77, 128, 0.7);
margin-bottom: 100px;
height: 572.4px;
}
.cat_options {
margin: 20px 20px;
}
.quiz_list {
margin: 30px;
height: 300px;
}
.main_link {
background-color: rgb(0, 217, 255);
color: white;
padding: 8px 20px;
margin-top: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: 0.5s;
background-image: linear-gradient(
to bottom right,
rgb(0, 0, 0, 0),
rgb(10, 33, 75)
);
height: 10%;
}
.trend_list {
height: 300px;
}
.trend_quiz {
text-align: left;
font-size: x-large;
margin: 30px;
}
/*.trending_div {
text-align: center;
color: white;
padding: 20px;
margin: 20px;
margin-top: 40px;
}*/
.hidden {
display: none !important;
}
</style>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
crossorigin="anonymous"
/>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
</head>
<body>
<!--ANEESH SUBUDHI 19BCT0038 MEHUL RANA 19BCT0033 PRITH SHARMA 19BCT0097-->
<header>
<nav
class="navbar navbar-expand-lg navbar-dark"
style="background-color: #1b4d80; width: 100%; font-size: larger"
>
<a
href=""
class="navbar-brand"
style="font-weight: 500; font-size: 1.5rem"
>
Trivial Trivia</a
>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="" class="nav-link">Quiz History</a>
</li>
<li class="nav-item">
<a href="" class="nav-link"> Profile</a>
</li>
</ul>
</div>
</nav>
</header>
<main style="height: 100%; width: 100%">
<div class="container-fluid">
<div class="row main_div">
<div class="col-lg-3 con1">
<div class="category_div">
<h2 style="text-align: center">Categories</h2>
Choose a category of your choice to attempt a quiz
<button
class="btn btn-warning btn-lg cat_options geography"
style="width: 200px"
>
Geography
</button>
<button
class="btn btn-warning btn-lg cat_options maths"
style="width: 200px"
>
Maths
</button>
<button
class="btn btn-warning btn-lg cat_options computer"
style="width: 200px"
>
Computer
</button>
<button
class="btn btn-warning btn-lg cat_options science"
style="width: 200px"
>
Science
</button>
<button
class="btn btn-warning btn-lg cat_options miscellaneous"
style="width: 200px"
>
Miscellaneous
</button>
</div>
</div>
<div class="col-lg-6">
<div class="quizlist_div">
<h2 class="choose_category">👈Choose a Category</h2>
<h3 class="category_title">Category : Geography</h3>
<div
class="btn-group-vertical quiz_list"
style="overflow-y: scroll"
>
<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
Asia Quiz
</button>
<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
North America Quiz
</button>
<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
South America Quiz
</button>
<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
Africa Quiz
</button>
<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
Europe Quiz
</button>
<!--<button
class="btn btn-outline-warning btn-lg"
style="width: 400px"
>
Countries Quiz
</button>-->
</div>
<button class="main_link" style="width: 40%">Attempt Quiz</button>
</div>
</div>
<div class="col-lg-3 con3">
<div class="trending_div">
<h3 style="text-align: center">📈Trending Quizzes</h3>
<div class="trend_list">
<p class="trend_quiz">1. Geography : Asia Quiz</p>
<p class="trend_quiz">2. History : Medieval History</p>
<p class="trend_quiz">3. Geography : North America Quiz</p>
<p class="trend_quiz">4. Science : Human Body</p>
<p class="trend_quiz"></p>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="js/attempt_quiz.js"></script>
</body>
</html>