diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-03 20:03:33 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-03 20:03:33 +0700 |
| commit | 20872500852b1cb831b8e834bd7bfab42a59b255 (patch) | |
| tree | ce07c3f6e1677cc7d5ae2b055b606143cfcbaa1a /frontend | |
| parent | 70860326d5c0f9c83ac6b9dbef1c5c109673eab6 (diff) | |
oops
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/main.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/frontend/main.js b/frontend/main.js index 4bdb2a1..1434979 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -257,10 +257,8 @@ async function startLoadTimers() { text.innerText += seconds.toString().padStart(2, '0'); const prog = document.getElementById(progList[i]); - console.log(prog); - const totalTime = endTimestamps - startTimestamps; + const totalTime = endTimestamps[0] - startTimestamps[0]; prog.style.width = ((timeRemaining / (totalTime / 1000)) * 100).toString() + "%"; - console.log(prog.style.width); if (timeRemaining <= 0) { document.getElementById(`timer-btn-${i}`).disabled = false; |
