From 3f7a40a15e698b7d7ec72bcd111a8db45ad096e0 Mon Sep 17 00:00:00 2001 From: Closer2U Date: Wed, 28 Feb 2024 16:43:54 +0100 Subject: [PATCH] Fix timer not starting --- js/timer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/timer.js b/js/timer.js index 33b4c5e..b105b25 100644 --- a/js/timer.js +++ b/js/timer.js @@ -1,6 +1,6 @@ function startTimer(duration, display) { var timer = duration, minutes, seconds; - clearInterval(interval); + // clearInterval(interval); var interval = setInterval(function () { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); @@ -26,7 +26,7 @@ function startTimer(duration, display) { window.onclick = function () { display = document.getElementById('Timer'); var oneMinute = 60 ; //, - // display = document.getElementById('Timer'); + // display = document.getElementById('Timer'); startTimer(oneMinute, display); };