-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
291 lines (225 loc) · 11.8 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
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
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sorting Hat Quiz</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="./icons/icon.png" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<script src="https://kit.fontawesome.com/9ce43fc1dc.js" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Almendra+Display&family=Playwrite+DE+Grund:[email protected]&display=swap&family=Gabriela&display=swap&family=Special+Elite&display=swap&family=Playwrite+DE+Grund:[email protected]&family=Vesper+Libre:wght@400;500;700;900&display=swap&family=Cinzel+Decorative:wght@400;700;900&family=Gloock&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=MedievalSharp&display=swap"
rel="stylesheet" />
</head>
<body>
<img src="./assests/images/wand.png" class="custom-cursor" id="wandCursor" alt="Magic Wand">
<div class="relative w-full h-screen overflow-hidden">
<div class="light-sweep"></div>
<audio id="submitSound" src="protego-105518.mp3" preload="auto"></audio>
<audio id="backgroundSound" src="diagon_alley.mp3" loop></audio>
<div class="absolute top-0 left-0 w-full h-full bg-black z-0"></div>
<video autoplay muted loop class="absolute top-0 left-0 opacity-30 w-full h-full object-cover z-10" style="width: 100vw; height: 100vh;">
<source src="assests/Hermione.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<div>
<!-- Title Section -->
<h1 class="overlay-text">Which Hogwarts House Do You Belong To?</h1>
<img src="assests/images/clipart1985953.png" alt="Hogwarts Clipart" class="overlay-text" style="width: 500px; height: auto; margin-top: 350px; filter: brightness(90%);">
</div>
</div>
<div class="container" id="quiz-container">
<p class="questP">Answer the questions below to find out your house!</p>
<div class="theme-buttons">
<!-- <button class="theme-button" data-theme="default">Default</button> -->
<button class="theme-button" data-theme="gryffindor">Gryffindor</button>
<button class="theme-button" data-theme="ravenclaw">Ravenclaw</button>
<button class="theme-button" data-theme="hufflepuff">Hufflepuff</button>
<button class="theme-button" data-theme="slytherin">Slytherin</button>
</div>
<form id="quizForm">
<div class="question">
<h3>1. What do you value the most?</h3>
<input type="radio" id="q1-option1" name="q1" value="Gryffindor" />
<label for="q1-option1">Bravery</label>
<input type="radio" id="q1-option2" name="q1" value="Ravenclaw" />
<label for="q1-option2">Knowledge</label>
<input type="radio" id="q1-option3" name="q1" value="Hufflepuff" />
<label for="q1-option3">Loyalty</label>
<input type="radio" id="q1-option4" name="q1" value="Slytherin" />
<label for="q1-option4">Ambition</label>
</div>
<div class="question">
<h3>2. What would you do in a difficult situation?</h3>
<input type="radio" id="q2-option1" name="q2" value="Gryffindor" />
<label for="q2-option1">Face it head-on</label>
<input type="radio" id="q2-option2" name="q2" value="Ravenclaw" />
<label for="q2-option2">Think it through logically</label>
<input type="radio" id="q2-option3" name="q2" value="Hufflepuff" />
<label for="q2-option3">Seek help from friends</label>
<input type="radio" id="q2-option4" name="q2" value="Slytherin" />
<label for="q2-option4">Do what benefits you the most</label>
</div>
<div class="question">
<h3>3. What's your biggest strength?</h3>
<input type="radio" id="q3-option1" name="q3" value="Gryffindor" />
<label for="q3-option1">Courage</label>
<input type="radio" id="q3-option2" name="q3" value="Ravenclaw" />
<label for="q3-option2">Intelligence</label>
<input type="radio" id="q3-option3" name="q3" value="Hufflepuff" />
<label for="q3-option3">Patience</label>
<input type="radio" id="q3-option4" name="q3" value="Slytherin" />
<label for="q3-option4">Determination</label>
</div>
<div class="question">
<h3>4. How do you prefer to spend your free time?</h3>
<input type="radio" id="q4-option1" name="q4" value="Gryffindor" />
<label for="q4-option1">Adventuring</label>
<input type="radio" id="q4-option2" name="q4" value="Ravenclaw" />
<label for="q4-option2">Reading</label>
<input type="radio" id="q4-option3" name="q4" value="Hufflepuff" />
<label for="q4-option3">Helping others</label>
<input type="radio" id="q4-option4" name="q4" value="Slytherin" />
<label for="q4-option4">Networking</label>
</div>
<div class="question">
<h3>5. What is your ideal pet?</h3>
<input type="radio" id="q5-option1" name="q5" value="Gryffindor" />
<label for="q5-option1">A brave dog</label>
<input type="radio" id="q5-option2" name="q5" value="Ravenclaw" />
<label for="q5-option2">An intelligent owl</label>
<input type="radio" id="q5-option3" name="q5" value="Hufflepuff" />
<label for="q5-option3">A loyal cat</label>
<input type="radio" id="q5-option4" name="q5" value="Slytherin" />
<label for="q5-option4">A clever ferret</label>
</div>
<div class="question">
<h3>6. Which of these words resonates with you the most?</h3>
<input type="radio" id="q6-option1" name="q6" value="Gryffindor" />
<label for="q6-option1">Fearless</label>
<input type="radio" id="q6-option2" name="q6" value="Ravenclaw" />
<label for="q6-option2">Wise</label>
<input type="radio" id="q6-option3" name="q6" value="Hufflepuff" />
<label for="q6-option3">Kind</label>
<input type="radio" id="q6-option4" name="q6" value="Slytherin" />
<label for="q6-option4">Cunning</label>
</div>
<div class="question">
<h3>7. What kind of leader are you?</h3>
<input type="radio" id="q7-option1" name="q7" value="Gryffindor" />
<label for="q7-option1">Bold and decisive</label>
<input type="radio" id="q7-option2" name="q7" value="Ravenclaw" />
<label for="q7-option2">Thoughtful and strategic</label>
<input type="radio" id="q7-option3" name="q7" value="Hufflepuff" />
<label for="q7-option3">Supportive and inclusive</label>
<input type="radio" id="q7-option4" name="q7" value="Slytherin" />
<label for="q7-option4">Ambitious and influential</label>
</div>
<div class="question">
<h3>8. What would you like to be known for?</h3>
<input type="radio" id="q8-option1" name="q8" value="Gryffindor" />
<label for="q8-option1">Courageous acts</label>
<input type="radio" id="q8-option2" name="q8" value="Ravenclaw" />
<label for="q8-option2">Innovations</label>
<input type="radio" id="q8-option3" name="q8" value="Hufflepuff" />
<label for="q8-option3">Kindness</label>
<input type="radio" id="q8-option4" name="q8" value="Slytherin" />
<label for="q8-option4">Strategic success</label>
</div>
<div class="question">
<h3>9. If you were at Hogwarts, what would be your favorite subject?</h3>
<input type="radio" id="q9-option1" name="q9" value="Slytherin" />
<label for="q9-option1">Potions</label>
<input type="radio" id="q9-option2" name="q9" value="Gryffindor" />
<label for="q9-option2">Defense Against the Dark Arts</label>
<input type="radio" id="q9-option3" name="q9" value="Hufflepuff" />
<label for="q9-option3">Herbology</label>
<input type="radio" id="q9-option4" name="q9" value="Ravenclaw" />
<label for="q9-option4">Transfiguration</label>
</div>
<div class="question">
<h3>10. What is your ideal way to spend a weekend?</h3>
<input type="radio" id="q10-option1" name="q10" value="Ravenclaw" />
<label for="q10-option1">Reading a book or learning something new</label>
<input type="radio" id="q10-option2" name="q10" value="Gryffindor" />
<label for="q10-option2">Going on an adventure with friends</label>
<input type="radio" id="q10-option3" name="q10" value="Hufflepuff" />
<label for="q10-option3">Spending time with loved ones</label>
<input type="radio" id="q10-option4" name="q10" value="Slytherin" />
<label for="q10-option4">Working on personal goals or projects</label>
</div>
<div class="question">
<h3>11. What is your biggest fear?</h3>
<input type="radio" id="q11-option1" name="q11" value="Slytherin" />
<label for="q11-option1">Failure</label>
<input type="radio" id="q11-option2" name="q11" value="Gryffindor" />
<label for="q11-option2">Being powerless</label>
<input type="radio" id="q11-option3" name="q11" value="Hufflepuff" />
<label for="q11-option3">Losing those I care about</label>
<input type="radio" id="q11-option4" name="q11" value="Ravenclaw" />
<label for="q11-option4">Being average</label>
</div>
<div class="question">
<h3>12. Which color do you feel most drawn to?</h3>
<input type="radio" id="q12-option1" name="q12" value="Ravenclaw" />
<label for="q12-option1">Blue</label>
<input type="radio" id="q12-option2" name="q12" value="Gryffindor" />
<label for="q12-option2">Red</label>
<input type="radio" id="q12-option3" name="q12" value="Hufflepuff" />
<label for="q12-option3">Yellow</label>
<input type="radio" id="q12-option4" name="q12" value="Slytherin" />
<label for="q12-option4">Green</label>
</div>
<button type="submit">Get Sorted!</button>
</form>
<div id="result" class="result"></div>
<img id="houseImage" src="" alt="" style="display: none;" />
<img id="gifOverlay" class="gif-overlay" style="display: none;" />
<!-- Add this section here, under the result -->
<div class="spell-of-the-day-container">
<h2>Spell of the Day</h2>
<button id="generateSpellBtn" class="reveal-spell-btn">Reveal Today's Spell</button>
<div id="spellOfTheDay" class="spell-of-the-day">
</div>
</div>
</div>
<!-- FAB -->
<a href="#top" class = "to-top">
<img src="assests/images/upicon.png" alt="Hogwarts Clipart" style="width: 60px; height: 60px; filter: brightness(90%);">
<i class="fa-solid fa-arrow-up"></i>
</a>
<!-- Footer Section -->
<footer class="footer">
<div class="footer-top">
<div class="img-icon"></div>
<div class="links">
<p>
<a href="#privacy">Privacy Policy</a> <br>
<a href="#terms">Terms of Service</a> <br>
<a href="#faq">FAQ</a>
</p>
</div>
<div class="social-links">
<p>Follow us</p>
<a href="https://facebook.com" target="_blank"><i class="ri-facebook-fill"></i></a>
<a href="https://twitter.com" target="_blank"><i class="ri-twitter-x-line"></i></a>
<a href="https://instagram.com" target="_blank"><i class="ri-instagram-line"></i></a>
</div>
<div class="newsletter">
<p>Subscribe to our newsletter:</p>
<form>
<input type="email" placeholder="Your email" required>
<button type="submit" class="btn">Subscribe</button>
</form>
</div>
</div>
<div class="footer-bottom">
<h4></h4>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>