Skip to content

Commit

Permalink
Fix timer not starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Closer2U committed Feb 28, 2024
1 parent 0babbc4 commit 3f7a40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/timer.js
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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);
};

Expand Down

0 comments on commit 3f7a40a

Please sign in to comment.