-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
377 lines (355 loc) Β· 13.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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Pimsleur Progress Tracker</title>
<link rel="stylesheet" href="css/styles.css" />
<link rel="icon" href="assets/images/favicon.ico" type="image/x-icon" />
<link
rel="apple-touch-icon"
href="assets/images/pimsleur-ios-icon.png"
type="image/x-icon"
/>
<script src="js/script.js" defer></script>
</head>
<body>
<div class="main-container">
<div class="container">
<div class="logo">
<img
src="assets/images/pimsleur-logo.png"
alt="Pimsleur Logo"
id="pimsleurLogo"
/>
<p>
This tracker helps you gauge your progress in Pimsleur lessons. Aim
for 80% mastery before advancing.
</p>
</div>
<div class="center-content">
<div class="row">
<button class="btn" id="revertButton">β© Undo</button>
<button class="btn" id="resetButton">β» Done</button>
</div>
<div class="line"></div>
<div class="table-container">
<div class="table-results-main-container">
<div class="table-results-container" id="rowContainer">
<!-- Demo item 1. -->
<div class="demo-table-results demo-good" style="display: flex">
<p class="demo-table-results-type">
<span class="demo-table-results-type-name">β Good</span>
</p>
<p class="demo-table-results-time">
<span class="demo-table-results-time-min">29m</span>
<span class="demo-table-results-time-sec">14s</span>
</p>
</div>
<!-- Demo item 2. -->
<div
class="demo-table-results demo-bad demo-table-results-old-rows"
style="display: flex"
>
<p class="demo-table-results-type">
<span class="demo-table-results-type-name">β Bad</span>
</p>
<p class="demo-table-results-time">
<span class="demo-table-results-time-min">29m</span>
<span class="demo-table-results-time-sec">8s</span>
</p>
</div>
<!-- Demo item 3. -->
<div
class="demo-table-results demo-good demo-table-results-old-rows"
style="display: flex"
>
<p class="demo-table-results-type">
<span class="demo-table-results-type-name">β Good</span>
</p>
<p class="demo-table-results-time">
<span class="demo-table-results-time-min">29m</span>
<span class="demo-table-results-time-sec">1s</span>
</p>
</div>
<!-- Demo item 4. -->
<div
class="demo-table-results demo-bad demo-table-results-old-rows"
style="display: flex"
>
<p class="demo-table-results-type">
<span class="demo-table-results-type-name">β Bad</span>
</p>
<p class="demo-table-results-time">
<span class="demo-table-results-time-min">28m</span>
<span class="demo-table-results-time-sec">51s</span>
</p>
</div>
<!-- End of demo items. -->
</div>
<div class="filter-container">
<button
id="filterButton"
class="filter-button btn filter-mode-off"
>
π§Ή Filter
</button>
<div class="lock-container">
<label for="lockScrollToggle">π</label>
<input type="checkbox" id="lockScrollToggle" />
</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="row">
<div class="wrong-container">
<p class="result">
Bad: <span id="wrongCount">0</span> (<span id="wrongPercentage"
>0%</span
>)
</p>
<div class="btn-wrapper">
<button class="btn" id="wrongButton">β Bad</button>
<div id="clickAreaWrongButton" class="click-area-wrong"></div>
</div>
</div>
<div class="correct-container">
<p class="result">
Good: <span id="correctCount">0</span> (<span
id="correctPercentage"
>0%</span
>)
</p>
<div class="btn-wrapper">
<button class="btn" id="correctButton">β Good</button>
<div
id="clickAreaCorrectButton"
class="click-area-correct"
></div>
</div>
</div>
</div>
</div>
</div>
<div class="settings-container">
<button class="settings-toggle btn">βοΈ View Settings</button>
<div class="settings-content-container">
<div class="settings-content" id="settingsContent">
<!-- Audio slider. -->
<!-- Enhanced Checkbox Containers -->
<div class="options-container">
<div
class="volume-checkbox-container checkbox-container"
id="volumeControls"
style="display: none"
>
<div class="input-wrapper">
<label class="volume-text">Volume:</label>
<input
class="audio-input"
type="number"
id="volumeInput"
min="0"
max="100"
value="5"
step="1"
placeholder="5"
oninput="validateInput(this)"
onkeydown="return isIntegerKey(event)"
/>
<label class="percentage-symbol">%</label>
</div>
<input
class="volume-slider"
type="range"
id="volumeSlider"
min="0"
max="1"
step="0.01"
value="0.05"
/>
</div>
<!-- Add Dark Mode Toggle Button -->
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="darkModeToggle" checked />
<span class="checkmark"></span>
π¦ Toggle Dark Mode
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="soundToggle" />
<span class="checkmark"></span>
π Enable Sound
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="goodGKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'G' for Good
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input
type="checkbox"
id="goodRightArrowKeyCheckbox"
checked
/>
<span class="checkmark"></span>
Enable 'Right Arrow' for Good
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="badGKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'B' for Bad
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="badArrowKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'Left Arrow' for Bad
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="goodEnterKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'Enter' for Good
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="goodPeriodKeyCheckbox" checked />
<span class="checkmark"></span>
Enable '.' for Good
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="goodYKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'y' for Good
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="badCommaKeyCheckbox" checked />
<span class="checkmark"></span>
Enable ',' for Bad
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="badNKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'n' for Bad
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="badBackspaceKeyCheckbox" checked />
<span class="checkmark"></span>
Enable 'Backspace' for Bad
</label>
</div>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="vibrationToggle" />
<span class="checkmark"></span>
π³ Enable Vibration (unsupported by iOS)
</label>
</div>
<!-- End of checkboxes. -->
</div>
</div>
</div>
<!-- Collapsible Manual -->
<div class="manual-container">
<button class="manual-toggle btn">π View Manual</button>
<div class="manual-content" id="manualContent">
<p>
<strong>π¦ Dark Mode Toggle:</strong> Enables dark mode to reduce
eye strain and improve readability in low-light conditions.
</p>
<p>
<strong>π Lock Screen Scroll Toggle:</strong> Activates the lock
screen scroll feature, preventing the page from scrolling.
</p>
<p>
<strong>π Toggle Sound:</strong> Enable or disable sound feedback
for the 'Bad' and 'Good' buttons.
</p>
<p>
<strong>'G' for Good:</strong> Press the 'G' key to mark an answer
as good.
</p>
<p>
<strong>Right Arrow for Good:</strong> Press the 'Right Arrow' key
to mark an answer as good.
</p>
<p>
<strong>'B' for Bad:</strong> Press the 'B' key to mark an answer
as bad.
</p>
<p>
<strong>Left Arrow for Bad:</strong> Press the 'Left Arrow' key to
mark an answer as bad.
</p>
<!-- Additional Button Instructions -->
<p>
<strong>'Enter' for Good:</strong> Press the 'Enter' key to mark
an answer as good.
</p>
<p>
<strong>'.' for Good:</strong> Press the '.' key to mark an answer
as good.
</p>
<p>
<strong>'y' for Good:</strong> Press the 'y' key to mark an answer
as good.
</p>
<p>
<strong>',' for Bad:</strong> Press the ',' key to mark an answer
as bad.
</p>
<p>
<strong>'n' for Bad:</strong> Press the 'n' key to mark an answer
as bad.
</p>
<p>
<strong>'Backspace' for Bad:</strong> Press the 'Backspace' key to
mark an answer as bad.
</p>
<p>
<strong>π³ Toggle Vibration:</strong> Enable or disable vibration
feedback for the 'Bad' and 'Good' buttons. Note: May not be
supported on iOS or certain browsers, and may require proper
permissions.
</p>
</div>
</div>
</div>
</div>
<div class="confirmation-modal" id="confirmationModal">
<div class="modal-content">
<p>Are you sure you want to finish?</p>
<div class="modalButtons">
<button class="btn confirm" id="confirmDone">Yes, I'm done</button>
<button class="btn cancel" id="cancelDone">Cancel</button>
</div>
</div>
</div>
<audio id="negativeSound" src="assets/audio/negative-2.mp3"></audio>
<audio id="positiveSound" src="assets/audio/positive-2.mp3"></audio>
</body>
</html>