diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-03 19:18:56 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-03 19:18:56 +0700 |
| commit | 12b820d7f8e782d498e501e463c4ed3c82849be2 (patch) | |
| tree | 829de5038a90fe42d50e5297aaccd9fbd19c26b2 | |
| parent | 15f1bb4b5e56a35372c3b98cb44e3ac214a8060a (diff) | |
mod 60 for main.js minutes frontend/timer so if 1 hr it doens't show up as 1:60
| -rw-r--r-- | frontend/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/main.js b/frontend/main.js index a90631f..c455d86 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -250,7 +250,7 @@ async function startLoadTimers() { text.innerText = ""; const timeRemaining = Math.max(Math.round((endTimestamps[i] - Date.now()) / 1000), 0); const hours = Math.floor(timeRemaining / 3600); - const minutes = Math.floor(timeRemaining / 60); + const minutes = Math.floor(timeRemaining / 60) % 60; const seconds = timeRemaining % 60; if (hours > 0) text.innerText += hours.toString().padStart(2, '0') + ':'; text.innerText += minutes.toString().padStart(2, '0') + ':'; |
