rrr257 commited on
Commit
ca98ea2
·
verified ·
1 Parent(s): 867eb08

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -14
index.html CHANGED
@@ -201,10 +201,10 @@
201
  <div class="settings">
202
  <label>
203
  <div class="settings-title">Reminder Interval: <span id="intervalDisplay">8</span> seconds</div>
204
- <input type="range" id="intervalSlider" min="2" max="15" step="1" value="8">
205
  <div class="range-labels">
206
- <span>Fast (2s)</span>
207
- <span>Medium (8s)</span>
208
  <span>Slow (15s)</span>
209
  </div>
210
  </label>
@@ -214,9 +214,9 @@
214
 
215
  <div class="instructions">
216
  <h3>How to Use:</h3>
217
- <p><strong>1.</strong> Set how often you want the PAUSE reminder (2-15 seconds)</p>
218
  <p><strong>2.</strong> Press Start to begin</p>
219
- <p><strong>3.</strong> Every time "PAUSE" appears, take a 1-2-3 second pause</p>
220
  <p><strong>4.</strong> Use this while reading aloud, speaking, or practicing Short-Link-Stop</p>
221
  </div>
222
  </div>
@@ -235,15 +235,13 @@
235
  const settingsNote = document.getElementById('settingsNote');
236
 
237
  function showPause() {
238
- // Add flash effect to display
239
  pauseDisplay.classList.add('flash');
240
  pauseWord.classList.add('show');
241
 
242
- // Remove effects after 1 second
243
- setTimeout(() => {
244
  pauseWord.classList.remove('show');
245
  pauseDisplay.classList.remove('flash');
246
- }, 1000);
247
  }
248
 
249
  function start() {
@@ -254,10 +252,8 @@
254
  intervalSlider.disabled = true;
255
  settingsNote.style.display = 'block';
256
 
257
- // Show first pause immediately
258
  showPause();
259
 
260
- // Set up interval
261
  intervalId = setInterval(showPause, intervalSeconds * 1000);
262
  }
263
 
@@ -267,13 +263,11 @@
267
  intervalSlider.disabled = false;
268
  settingsNote.style.display = 'none';
269
 
270
- // Stop interval
271
  if (intervalId) {
272
  clearInterval(intervalId);
273
  intervalId = null;
274
  }
275
 
276
- // Reset display
277
  pauseWord.classList.remove('show');
278
  pauseDisplay.classList.remove('flash');
279
  }
@@ -281,7 +275,7 @@
281
  startBtn.addEventListener('click', start);
282
  resetBtn.addEventListener('click', reset);
283
 
284
- intervalSlider.addEventListener('input', (e) => {
285
  intervalSeconds = parseInt(e.target.value);
286
  intervalDisplay.textContent = intervalSeconds;
287
  });
 
201
  <div class="settings">
202
  <label>
203
  <div class="settings-title">Reminder Interval: <span id="intervalDisplay">8</span> seconds</div>
204
+ <input type="range" id="intervalSlider" min="5" max="15" step="1" value="8">
205
  <div class="range-labels">
206
+ <span>Fast (5s)</span>
207
+ <span>Medium (10s)</span>
208
  <span>Slow (15s)</span>
209
  </div>
210
  </label>
 
214
 
215
  <div class="instructions">
216
  <h3>How to Use:</h3>
217
+ <p><strong>1.</strong> Set how often you want the PAUSE reminder (5-15 seconds)</p>
218
  <p><strong>2.</strong> Press Start to begin</p>
219
+ <p><strong>3.</strong> Every time "PAUSE" appears (for 3 seconds), take your pause</p>
220
  <p><strong>4.</strong> Use this while reading aloud, speaking, or practicing Short-Link-Stop</p>
221
  </div>
222
  </div>
 
235
  const settingsNote = document.getElementById('settingsNote');
236
 
237
  function showPause() {
 
238
  pauseDisplay.classList.add('flash');
239
  pauseWord.classList.add('show');
240
 
241
+ setTimeout(function() {
 
242
  pauseWord.classList.remove('show');
243
  pauseDisplay.classList.remove('flash');
244
+ }, 3000);
245
  }
246
 
247
  function start() {
 
252
  intervalSlider.disabled = true;
253
  settingsNote.style.display = 'block';
254
 
 
255
  showPause();
256
 
 
257
  intervalId = setInterval(showPause, intervalSeconds * 1000);
258
  }
259
 
 
263
  intervalSlider.disabled = false;
264
  settingsNote.style.display = 'none';
265
 
 
266
  if (intervalId) {
267
  clearInterval(intervalId);
268
  intervalId = null;
269
  }
270
 
 
271
  pauseWord.classList.remove('show');
272
  pauseDisplay.classList.remove('flash');
273
  }
 
275
  startBtn.addEventListener('click', start);
276
  resetBtn.addEventListener('click', reset);
277
 
278
+ intervalSlider.addEventListener('input', function(e) {
279
  intervalSeconds = parseInt(e.target.value);
280
  intervalDisplay.textContent = intervalSeconds;
281
  });