diff options
| author | s1n <[email protected]> | 2019-10-31 12:43:52 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-31 12:43:52 -0700 |
| commit | 34510ee2f5fab7602737508c24771ee8d97f4859 (patch) | |
| tree | a2c0c667782f278c6034a00a09f1f15be15565b2 /to | |
| parent | instant download (diff) | |
| download | s1n.pw-admin-34510ee2f5fab7602737508c24771ee8d97f4859.tar.xz s1n.pw-admin-34510ee2f5fab7602737508c24771ee8d97f4859.zip | |
Update countdown.js
Diffstat (limited to 'to')
| -rw-r--r-- | to/js/countdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/to/js/countdown.js b/to/js/countdown.js index 9312d8a..5fc3039 100644 --- a/to/js/countdown.js +++ b/to/js/countdown.js @@ -12,7 +12,7 @@ function startTimer(duration, display) { // Original with minutes // display.textContent = minutes + ":" + seconds; - if (--timer < 0) { + if (--timer < 0*60) { timer = duration; } }, 1000); @@ -22,4 +22,4 @@ window.onload = function () { var fiveMinutes = 4 * 1, // 60 * 5 display = document.querySelector('#time'); startTimer(fiveMinutes, display); -};
\ No newline at end of file +}; |