This repository was archived by the owner on Aug 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.html
286 lines (255 loc) · 10.3 KB
/
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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>DI Terminology Quiz</title>
<link rel="icon" type="image/x-icon" href="photos/favicon-removebg-preview.webp">
<meta name="description" content="Challenge your Destination Imagination knowledge on our Quiz page. Test your grasp of DI terminology and concepts through interactive questions. Get ready to showcase your expertise and learn more about the world of Destination Imagination.">
<meta name="keywords" content="Destination Imagination, Creative Problem Solving, Daring Dragons, Team, Innovation">
<meta name="author" content="Eshaan Ahuja">
<meta name="language" content="English">
<link rel="apple-touch-icon" href="photos/favicon.webp">
<meta name="theme-color" content="#8DCFEC">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap">
<style>
html { /* note this page uses its own style sheet!! */
height: 100%;
width: 100%;
background-color: #8DCFEC;
}
#u {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #CBC3E3;
border: 3px solid #1aa7ec;
overflow-y: hidden;
}
#hed {
float: left;
}
#hed a, .dropbtn {
display: inline-block;
color: lightcoral;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
#hed #hd:hover, .dropdown:hover .dropbtn {
background-color: #9243d9;
}
#hed.dropdown {
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #1aa7ec;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: light lightcoral;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content #hd:hover {background-color: #9243d9;}
.dropdown:hover .dropdown-content {
display: block;
display: flex;
justify-content: center;
}
.dropdown {
display: inline;
}
body{
font-family: 'Quicksand', sans-serif;
}
p {
font-size: 25px;
}
input, #hed {
font-size:20px;
}
.neon-text {
font-size: 36px;
color: #00ff00;
text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
animation: neon-glow 1.5s ease-in-out infinite;
}
@keyframes neon-glow {
0%, 100% {
text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}
50% {
text-shadow: none;
}
}
.button-blue {
background-color: #1aa7ec; /* Blue color */
color: #fff; /* White text */
padding: 10px 20px; /* Adjust padding as needed */
border: 2px solid #1aa7ec; /* Border color same as background color */
border-radius: 25px; /* Oval border */
cursor: pointer;
transition: background-color 0.3s, color 0.3s; /* Smooth transition on hover */
}
.button-blue:hover {
background-color: #155a8a; /* Darker blue color on hover */
color: #fff; /* White text on hover */
}
</style>
</head>
<body>
<header>
<div id="big">
<ul id="u">
<li id="hed"> <a id="hd" href="index.html"> Go to the home page! </a></li>
<li id="hed"> <a id="hd" href="contact.html"> Contact us! </a></li>
<li id="hed"> <a id="hd" href="sponsorships.html"> Sponsorships! </a></li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">About our team!</a>
<div class="dropdown-content">
<a id="hd" href="varun_i.html">Varun I</a>
<a id="hd" href="gokul_s.html">Gokul S</a>
<a id="hd" href="eshaan_a.html">Eshaan A</a>
<a id="hd" href="sristi_s.html">Sristi S</a>
<a id="hd" href="sk.html">Sahasra K</a>
<a id="hd" href="sahasra_v.html">Sahasra V</a>
<a id="hd" href="rj.html">Ruchika Joshi - The Team Manager!!</a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Team progress & fun games!</a>
<div class="dropdown-content">
<a id="hd" href="script.html">Script Progress!</a>
<a id="hd" href="sets&costumes.html">Sets and Costumes progress!</a>
<a id="hd" href="quiz.html">Take a DI quiz to test your knowledge!</a>
<a id="hd" href="resources.html">Resources/Materials</a>
</div>
</li>
<li id="long">|</li>
<input type="text" id="search" placeholder="Search for info on our page!">
<div id="search-results"></div>
<li>
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</li>
</li>
</ul>
</div>
</header>
<h1>Destination Imagination Terminology Quiz</h1>
<form id="quizForm">
<ol>
<li>
<h3>What does "IC" stand for in DI terminology?</h3>
<input type="radio" name="q1" value="a">Instant Challenge<br>
<input type="radio" name="q1" value="b">International Competition<br>
<input type="radio" name="q1" value="c">Innovative Creativity<br>
</li>
<li>
<h3>What is the role of a "Team Manager" in DI?</h3>
<input type="radio" name="q2" value="a">Lead performer<br>
<input type="radio" name="q2" value="b">Adult supervisor and mentor<br>
<input type="radio" name="q2" value="c">Judge for the competition<br>
</li>
<li>
<h3>What is the purpose of "Appraisers" in DI?</h3>
<input type="radio" name="q3" value="a">Design submissions<br>
<input type="radio" name="q3" value="b">Evaluate and score team performances<br>
<input type="radio" name="q3" value="c">Create instant challenges<br>
</li>
<li>
<h3>What is the primary goal of "Instant Challenges" in DI?</h3>
<input type="radio" name="q4" value="a">To test problem-solving skills with lots of time to create a solution<br>
<input type="radio" name="q4" value="b">To showcase on the spot creativity<br>
<input type="radio" name="q4" value="c">To determine the winner<br>
</li>
<li>
<h3>In DI, what does "Central Challenge" refer to?</h3>
<input type="radio" name="q5" value="a">The main problem that teams need to solve over the entire season<br>
<input type="radio" name="q5" value="b">A challenge that happens at the competition venue that you get on the spot<br>
<input type="radio" name="q5" value="c">A challenge based on geography<br>
</li>
<li>
<h3>What do DI teams typically create for their solutions in a DI challenge?</h3>
<input type="radio" name="q6" value="a">A detailed report<br>
<input type="radio" name="q6" value="b">A skit or performance<br>
<input type="radio" name="q6" value="c">A scientific experiment<br>
</li>
<li>
<h3>Who are the "Rising Stars!" in Destination Imagination?</h3>
<input type="radio" name="q7" value="a">Younger (K-2 grade) teams<br>
<input type="radio" name="q7" value="b">Adult team managers<br>
<input type="radio" name="q7" value="c">Top-performing teams<br>
</li>
<li>
<h3>How is creativity encouraged in Destination Imagination challenges?</h3>
<input type="radio" name="q8" value="a">By providing detailed instructions for each challenge with no room for creativity<br>
<input type="radio" name="q8" value="b"> By requiring teams to follow strict rules with no room for innovation<br>
<input type="radio" name="q8" value="c">By allowing teams to interpret the challenges in unique ways<br>
</li>
<li>
<h3>In DI, what do "props" refer to?</h3>
<input type="radio" name="q9" value="a">People participating in the challenge<br>
<input type="radio" name="q9" value="b">Materials and objects used in the solution<br>
<input type="radio" name="q9" value="c">Judges and appraisers<br>
</li>
<li>
<h3>What is the "Spirit of DI"?</h3>
<input type="radio" name="q10" value="a">Encouraging unhealthy levels of competition<br>
<input type="radio" name="q10" value="b">Promoting teamwork and creativity<br>
<input type="radio" name="q10" value="c">Focusing on winning at all costs<br>
</li>
</ol>
<input class="button-blue" type="submit" value="Submit">
<br>
<br>
<button class="button-blue" onclick="a()">If you are stumped, click me to show the answers</button>
<p>Scroll down for your results!</p>
<div id="results"></div> <!-- div for the results -->
<div id="aw"></div> <!-- div for the answers -->
</form>
<p class="neon-text"><a href="https://ahujaesh.github.io">Click here to go back to the main page after taking the survey!</a></p>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.getElementById("quizForm").addEventListener("submit", function (e) {
e.preventDefault();
let score = 0;
const answers = ["a", "b", "b", "b", "a", "b", "a", "c", "b", "b"];
for (let i = 1; i <= 10; i++) {
const selectedOption = document.querySelector('input[name="q' + i + '"]:checked');
if (selectedOption) {
if (selectedOption.value === answers[i - 1]) {
score++;
}
}
}
const results = document.getElementById("results");
results.innerHTML = `<h2>You scored ${score}/10 correct answers.</h2>`;
// You can customize the feedback message based on the score.
if (score === 10) {
results.innerHTML += "<p>Great job! You're a DI terminology expert.</p>";
} else {
results.innerHTML += "<p>Keep learning and exploring the world of Destination Imagination!</p>";
}
});
});
function a(){
aw.innerHTML += "<p>Answers- a, b, b, b, a, b, a, c, b, b </p>";
}
</script>
<footer>
<p>© 2024 Eshaan Ahuja - Daring Dragons. All rights reserved.</p>
</footer>
</body>
</html>