-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (44 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Coding Quiz</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-purple-500 text-white">
<div class="absolute top-0 mt-5 left-0 ml-5 text-lg sm:mt-10 sm:ml-10">
<a href="highscores.html" class="hover:text-yellow-400">View Highscores</a>
</div>
<div class="absolute top-0 mt-5 right-0 mr-5 text-lg sm:mt-10 sm:mr-10">
Time: <span id="time">0</span>
</div>
<div class="my-32 mx-auto max-w-xl p-8 border-8 border-double border-yellow-300">
<div id="start-screen" class="text-center">
<h1 class="text-3xl font-bold mb-4">Friends Quiz Challenge</h1>
<p>
Try to answer the following Friends related questions within the time
limit. Keep in mind that incorrect answers will penalize your
score/time by ten seconds!
</p>
<button id="start" class="inline-block m-3 cursor-pointer bg-purple-900 py-1 px-3 text-white rounded-md hover:bg-yellow-600">Start Quiz</button>
</div>
<div id="questions" class="hidden">
<img id="question-img" class="block h-48 m-auto mb-4 max-w-full">
<h2 id="question-title"></h2>
<div id="choices"></div>
</div>
<div id="end-screen" class="hidden">
<h2 class="text-2xl font-bold mb-4">All done!</h2>
<p class="mt-1">Your final score is <span id="final-score"></span>.</p>
<p class="mt-5">
Enter initials: <input type="text" id="initials" max="3" class="text-black" />
<button id="submit" class="inline-block my-3 cursor-pointer bg-purple-900 py-1 px-3 text-white rounded-md hover:bg-yellow-600">Submit</button>
</p>
</div>
<div id="feedback" class="italic text-white border-t-2 mt-4 pt-3 hidden"></div>
</div>
<script src="./assets/js/questions.js"></script>
</body>
</html>