-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
193 lines (170 loc) · 7.98 KB
/
Copy pathindex.html
File metadata and controls
193 lines (170 loc) · 7.98 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WordMaster - Interactive Vocabulary Quiz</title>
<link rel="stylesheet" href="src/styles/index.css?v=202603130002">
<script src="https://unpkg.com/lucide@latest"></script>
</head>
<body>
<div id="app" class="container">
<div id="setup-view" class="card">
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle Theme">
<i data-lucide="sun"></i>
</button>
<button id="settings-btn" class="theme-toggle" aria-label="Settings" style="right: 5rem;">
<i data-lucide="settings"></i>
</button>
<h1>WordMaster</h1>
<div id="mastery-stats"
style="text-align: center; margin-bottom: 2rem; padding: 1rem; background: var(--bg); border-radius: 12px; border: 1px solid var(--border);">
<div style="font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem;">Total Mastered Words
</div>
<div id="total-mastered" style="font-size: 1.5rem; font-weight: 700; color: var(--success);">0</div>
</div>
<div id="library-selection-group" class="library-grid">
<div class="input-group">
<label for="book-select">Select Book</label>
<select id="book-select">
<option value="">Select a Book...</option>
</select>
</div>
<div class="input-group">
<label for="chapter-select">Select Chapter / Lesson</label>
<select id="chapter-select" disabled>
<option value="">Select a Chapter / Lesson...</option>
</select>
</div>
</div>
<div id="quiz-mode-selection">
<label>
<input type="radio" name="quiz-mode" value="spelling-only" checked>
Spelling Only
</label>
<label>
<input type="radio" name="quiz-mode" value="both">
Spelling & Meaning
</label>
</div>
<div id="setup-notice" class="setup-notice hidden"></div>
<div class="input-group">
<label>Paste Word List (word: definition)</label>
<textarea id="word-paste" rows="8"
placeholder="apple: a red fruit banana: a yellow long fruit"></textarea>
</div>
<div class="setup-actions">
<button id="start-btn">
<i data-lucide="play"></i>
Start Quiz
</button>
<button id="review-due-btn" class="secondary-btn">
<i data-lucide="brain"></i>
<span class="btn-text">Review</span>
</button>
<button id="review-btn" class="secondary-btn btn--outline">
<i data-lucide="book-open"></i>
<span class="btn-text">Review Incorrect</span>
</button>
</div>
</div>
<div id="review-list-view" class="card hidden">
<h1>Review List</h1>
<p id="review-list-subtitle">
The following words are due for review.
</p>
<div id="review-words-container" class="review-words-container">
<!-- Word list will be populated here -->
</div>
<div class="setup-actions view-actions">
<button id="start-review-action-btn">
<i data-lucide="play"></i>
<span class="btn-text">Start Review</span>
</button>
<button id="back-to-setup-btn" class="secondary-btn btn--outline">
<i data-lucide="arrow-left"></i>
<span class="btn-text">Back to Setup</span>
</button>
</div>
</div>
<div id="quiz-view" class="card hidden">
<div class="quiz-header">
<div style="display: flex; gap: 1rem; align-items: center;">
<span id="quiz-counter" style="font-weight: bold; min-width: 50px;">1 / 15</span>
<span class="status-badge status-correct"><i data-lucide="check"
style="width: 12px; height: 12px;"></i> <span id="correct-count">0</span></span>
<span class="status-badge status-incorrect"><i data-lucide="x"
style="width: 12px; height: 12px;"></i> <span id="incorrect-count">0</span></span>
</div>
<button id="restart-btn" class="secondary-btn" style="width: auto; padding: 0.5rem 1rem; margin: 0;">
<i data-lucide="rotate-ccw"></i>
</button>
</div>
<div class="progress-bar">
<div id="progress-fill" class="progress-fill" style="width: 0%"></div>
</div>
<div class="pronounce-box">
<button id="speak-btn" class="speak-btn">
<i data-lucide="volume-2" style="width: 32px; height: 32px;"></i>
</button>
<span style="color: var(--text-muted); font-size: 0.875rem;">Click to pronounce</span>
</div>
<div class="input-group">
<label>Spelling</label>
<input type="text" id="spelling-input" autocomplete="off" spellcheck="false"
placeholder="Type the word...">
</div>
<div id="meaning-group" class="input-group">
<label>Meaning</label>
<textarea id="meaning-input" rows="3" placeholder="What does it mean?"></textarea>
</div>
<div id="control-group">
<button id="check-btn">
Verify
</button>
<button id="next-btn" class="hidden">
Next Word
</button>
</div>
<div id="feedback" class="feedback hidden"></div>
</div>
<div id="results-view" class="card hidden">
<h1>Quiz Complete!</h1>
<div id="score-display"
style="text-align: center; font-size: 3rem; margin: 2rem 0; font-weight: 800; color: var(--primary);">
85%
</div>
<div id="stats-detail" style="color: var(--text-muted); text-align: center; margin-bottom: 2rem;">
You got 12/15 words correct.
</div>
<button id="final-restart-btn" class="secondary-btn"><i data-lucide="refresh-cw"></i> Restart Quiz</button>
</div>
<div id="settings-view" class="card hidden">
<h1>Settings</h1>
<div class="input-group">
<label>Voice Selection</label>
<div style="display: flex; gap: 0.5rem;">
<select id="voice-select" style="flex: 1;">
<option value="">System Default</option>
</select>
<button id="preview-voice-btn" style="width: auto; padding: 0.875rem 1rem;"
aria-label="Preview Voice">
<i data-lucide="play" style="width: 20px; height: 20px;"></i>
</button>
</div>
</div>
<div style="margin-top: 2rem;">
<button id="save-settings-btn">
<i data-lucide="save"></i>
Save & Back
</button>
</div>
</div>
<footer class="copyright-footer">
© 2026 Neio Zhou. All rights reserved.
<span style="margin-left: 1rem; opacity: 0.4; font-size: 0.75em;">v 202603130002</span>
</footer>
</div>
<script type="module" src="src/app.js?v=202603130002"></script>
</body>
</html>