summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/main.js4
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;