rrr257 commited on
Commit
bd60e99
·
verified ·
1 Parent(s): aaf1d7a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -218
index.html CHANGED
@@ -134,221 +134,4 @@
134
  cursor: pointer;
135
  }
136
 
137
- input[type="range"]::-webkit-slider-thumb {
138
- appearance: none;
139
- width: 1.5rem;
140
- height: 1.5rem;
141
- background: #f59e0b;
142
- border-radius: 50%;
143
- cursor: pointer;
144
- }
145
-
146
- input[type="range"]::-moz-range-thumb {
147
- width: 1.5rem;
148
- height: 1.5rem;
149
- background: #f59e0b;
150
- border-radius: 50%;
151
- cursor: pointer;
152
- border: none;
153
- }
154
-
155
- input[type="range"]:disabled {
156
- opacity: 0.5;
157
- cursor: not-allowed;
158
- }
159
-
160
- .range-labels {
161
- display: flex;
162
- justify-content: space-between;
163
- font-size: 0.875rem;
164
- color: #92400e;
165
- margin-top: 0.75rem;
166
- }
167
-
168
- .note {
169
- color: #92400e;
170
- font-style: italic;
171
- font-size: 0.875rem;
172
- margin-top: 1rem;
173
- }
174
-
175
- .instructions {
176
- background: #fef3c7;
177
- border: 2px solid #fde68a;
178
- border-radius: 0.75rem;
179
- padding: 1.5rem;
180
- text-align: left;
181
- }
182
-
183
- .instructions h3 {
184
- color: #78350f;
185
- font-weight: bold;
186
- margin-bottom: 0.75rem;
187
- }
188
-
189
- .instructions p {
190
- color: #92400e;
191
- line-height: 1.6;
192
- margin-bottom: 0.5rem;
193
- }
194
- </style>
195
- </head>
196
- <body>
197
- <div class="container">
198
- <div class="header">
199
- <h1 class="title">Pause Reminder</h1>
200
- <p class="subtitle">Remember to pause between phrases</p>
201
- </div>
202
-
203
- <div class="timer-display">
204
- <div class="timer-label">Practice Time</div>
205
- <div class="timer-value" id="timerDisplay">00:00</div>
206
- </div>
207
-
208
- <div class="pause-display" id="pauseDisplay">
209
- <div class="pause-word" id="pauseWord">PAUSE</div>
210
- </div>
211
-
212
- <div class="controls">
213
- <div class="buttons">
214
- <button id="startBtn" class="btn-start">
215
- <span>▶</span> Start
216
- </button>
217
- <button id="resetBtn" class="btn-reset">
218
- <span>↻</span> Reset
219
- </button>
220
- </div>
221
-
222
- <div class="settings">
223
- <label>
224
- <div class="settings-title">Reminder Interval: <span id="intervalDisplay">8</span> seconds</div>
225
- <input type="range" id="intervalSlider" min="5" max="15" step="1" value="8">
226
- <div class="range-labels">
227
- <span>Fast (5s)</span>
228
- <span>Medium (10s)</span>
229
- <span>Slow (15s)</span>
230
- </div>
231
- </label>
232
-
233
- <label>
234
- <div class="settings-title">Pause Visibility: <span id="visibilityDisplay">3</span> seconds</div>
235
- <input type="range" id="visibilitySlider" min="1" max="5" step="1" value="3">
236
- <div class="range-labels">
237
- <span>1s</span>
238
- <span>3s</span>
239
- <span>5s</span>
240
- </div>
241
- </label>
242
-
243
- <p class="note" id="settingsNote" style="display: none;">Reset to adjust settings during practice</p>
244
- </div>
245
- </div>
246
-
247
- <div class="instructions">
248
- <h3>How to Use:</h3>
249
- <p><strong>1.</strong> Set how often you want the PAUSE reminder (5-15 seconds)</p>
250
- <p><strong>2.</strong> Set how long PAUSE stays visible (1-5 seconds)</p>
251
- <p><strong>3.</strong> Press Start to begin</p>
252
- <p><strong>4.</strong> Every time "PAUSE" appears, take your pause</p>
253
- <p><strong>5.</strong> Use this while reading aloud, speaking, or practicing Short-Link-Stop</p>
254
- </div>
255
- </div>
256
-
257
- <script>
258
- let isRunning = false;
259
- let pauseIntervalId = null;
260
- let timerIntervalId = null;
261
- let intervalSeconds = 8;
262
- let visibilitySeconds = 3;
263
- let elapsedSeconds = 0;
264
-
265
- const pauseDisplay = document.getElementById('pauseDisplay');
266
- const pauseWord = document.getElementById('pauseWord');
267
- const timerDisplay = document.getElementById('timerDisplay');
268
- const startBtn = document.getElementById('startBtn');
269
- const resetBtn = document.getElementById('resetBtn');
270
- const intervalSlider = document.getElementById('intervalSlider');
271
- const intervalDisplay = document.getElementById('intervalDisplay');
272
- const visibilitySlider = document.getElementById('visibilitySlider');
273
- const visibilityDisplay = document.getElementById('visibilityDisplay');
274
- const settingsNote = document.getElementById('settingsNote');
275
-
276
- function formatTime(seconds) {
277
- const mins = Math.floor(seconds / 60);
278
- const secs = seconds % 60;
279
- return `${String(mins).padStart(2, '0')}:${String(secs).padStart(2, '0')}`;
280
- }
281
-
282
- function updateTimer() {
283
- elapsedSeconds++;
284
- timerDisplay.textContent = formatTime(elapsedSeconds);
285
- }
286
-
287
- function showPause() {
288
- pauseDisplay.classList.add('flash');
289
- pauseWord.classList.add('show');
290
-
291
- setTimeout(function() {
292
- pauseWord.classList.remove('show');
293
- pauseDisplay.classList.remove('flash');
294
- }, visibilitySeconds * 1000);
295
- }
296
-
297
- function start() {
298
- if (isRunning) return;
299
-
300
- isRunning = true;
301
- startBtn.disabled = true;
302
- intervalSlider.disabled = true;
303
- visibilitySlider.disabled = true;
304
- settingsNote.style.display = 'block';
305
-
306
- // Start stopwatch timer
307
- timerIntervalId = setInterval(updateTimer, 1000);
308
-
309
- // Show first pause immediately
310
- showPause();
311
-
312
- // Set up pause interval
313
- pauseIntervalId = setInterval(showPause, intervalSeconds * 1000);
314
- }
315
-
316
- function reset() {
317
- isRunning = false;
318
- startBtn.disabled = false;
319
- intervalSlider.disabled = false;
320
- visibilitySlider.disabled = false;
321
- settingsNote.style.display = 'none';
322
-
323
- // Stop timers
324
- if (pauseIntervalId) {
325
- clearInterval(pauseIntervalId);
326
- pauseIntervalId = null;
327
- }
328
- if (timerIntervalId) {
329
- clearInterval(timerIntervalId);
330
- timerIntervalId = null;
331
- }
332
-
333
- // Reset displays
334
- elapsedSeconds = 0;
335
- timerDisplay.textContent = '00:00';
336
- pauseWord.classList.remove('show');
337
- pauseDisplay.classList.remove('flash');
338
- }
339
-
340
- startBtn.addEventListener('click', start);
341
- resetBtn.addEventListener('click', reset);
342
-
343
- intervalSlider.addEventListener('input', function(e) {
344
- intervalSeconds = parseInt(e.target.value);
345
- intervalDisplay.textContent = intervalSeconds;
346
- });
347
-
348
- visibilitySlider.addEventListener('input', function(e) {
349
- visibilitySeconds = parseInt(e.target.value);
350
- visibilityDisplay.textContent = visibilitySeconds;
351
- });
352
- </script>
353
- </body>
354
- </html>
 
134
  cursor: pointer;
135
  }
136
 
137
+ input[type="range"]::-