diff --git a/index.html b/index.html index 5b467e7..fc7a541 100644 --- a/index.html +++ b/index.html @@ -377,8 +377,8 @@

BLINDS TIMER

-
10 / 20
-
Next: 20 / 40
+
5 / 10
+
Next: 10 / 20
30:00
@@ -414,16 +414,35 @@ let isTimerRunning = false; // Blind levels - let currentBlinds = { small: 10, big: 20 }; + let currentBlinds = { small: 5, big: 10 }; let blindLevels = []; - // Generate blind levels + // Generate blind levels with the specified structure function generateBlindLevels() { - blindLevels = []; - let small = 10; - let big = 20; + // Initial specific blind levels as requested + blindLevels = [ + { small: 5, big: 10 }, + { small: 10, big: 20 }, + { small: 20, big: 40 }, + { small: 30, big: 60 }, + { small: 40, big: 80 }, + { small: 50, big: 100 }, + { small: 75, big: 150 }, + { small: 100, big: 200 }, + { small: 150, big: 300 }, + { small: 200, big: 400 }, + { small: 300, big: 600 }, + { small: 400, big: 800 }, + { small: 500, big: 1000 } + ]; - for (let i = 0; i < 20; i++) { + // Continue doubling from the last level + let lastLevel = blindLevels[blindLevels.length - 1]; + let small = lastLevel.small * 2; + let big = lastLevel.big * 2; + + // Add 7 more doubled levels + for (let i = 0; i < 7; i++) { blindLevels.push({ small, big }); small *= 2; big *= 2; @@ -475,9 +494,11 @@ timeRemaining--; updateTimerDisplay(); } else { - // Time's up, move to next blind level + // Time's up, move to next blind level and restart the timer incrementBlinds(); - resetTimer(); + timeRemaining = timerDuration; // Reset time remaining to duration + updateTimerDisplay(); // Update display with new time + // Timer continues running without stopping } }, 1000); @@ -623,4 +644,4 @@ window.addEventListener('DOMContentLoaded', init); - + \ No newline at end of file