Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (121 loc) · 3.92 KB
/
Copy pathindex.html
File metadata and controls
128 lines (121 loc) · 3.92 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quiz App / FOMA</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
/>
<link rel="stylesheet" href="styles/styles.css" />
<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=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/ldrs/dist/auto/quantum.js"
></script>
</head>
<body>
<!-- Toast Container -->
<div id="toast-container"></div>
<!-- Start Quiz Button -->
<div class="start_btn">
<button>Start Quiz</button>
</div>
<div id="spinner">
<l-quantum size="45" speed="1.75" color="white"></l-quantum>
</div>
<!-- Info Box -->
<div class="info_box">
<div class="info_title">
<span>🚀 Game Setup</span>
</div>
<div class="info_list">
<div class="input_group">
<label for="nickname">Nickname</label>
<input
type="text"
id="nickname"
placeholder="Enter your nickname..."
autocomplete="off"
/>
</div>
<div class="input_group">
<label for="question_count">Number of Questions</label>
<select id="question_count">
<option value="15">15 Questions</option>
<option value="30">30 Questions</option>
<option value="45">45 Questions</option>
<option value="60">60 Questions</option>
</select>
</div>
<div class="rules_summary">
<p><i class="fas fa-clock"></i> 20s per question</p>
<p><i class="fas fa-ban"></i> No backtracking</p>
</div>
</div>
<div class="buttons">
<button class="quit">Exit</button>
<button class="restart">Start Game</button>
</div>
</div>
<!-- Quiz Box -->
<div class="quiz_box">
<header>
<div class="title">
<span class="badg user_badge"
><i class="fas fa-user"></i>
<span id="user_span">Player</span></span
>
</div>
<div class="timer">
<div class="time_text">Time left</div>
<div class="timer_sec">20</div>
</div>
<div class="time_line"></div>
<button class="stop_btn" title="Stop Game">
<i class="fas fa-power-off"></i>
</button>
</header>
<div class="score_board">
<span>Score: <span id="current_score">0</span></span>
</div>
<section>
<div class="which_section"></div>
<div class="que_text"></div>
<div class="option_list"></div>
</section>
<!-- quiz box footer -->
<footer>
<div class="total_que"></div>
<button class="next_btn">Next Question</button>
</footer>
</div>
<!-- result box -->
<div class="result_box">
<div class="icon">
<i class="fas fa-crown"></i>
</div>
<div class="complete_text">You've completed the Quiz!</div>
<div class="score_text"></div>
<div class="buttons">
<button class="restart">Replay</button>
<button class="quit">Quit</button>
</div>
</div>
<footer>
<div class="foma">
All rights reserved © <span id="year"></span> fomacodes.
</div>
</footer>
<script src="./js/toast.js"></script>
<script src="./js/questions.js"></script>
<script src="./js/script.js"></script>
<script src="./js/getYear.js"></script>
</body>
</html>