aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/timer.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/static/js/timer.js b/static/js/timer.js
index 8f6516c..d8be9de 100644
--- a/static/js/timer.js
+++ b/static/js/timer.js
@@ -4,8 +4,8 @@ var timer;
const contentLoadHandler = function(event){
timerToggle = !!document.getElementById("autoreload-checkbox").checked;
if(timerToggle){
- timerCount = 5;
- document.getElementById("autoreload-countdown").innerHTML = "5";
+ timerCount = 45;
+ document.getElementById("autoreload-countdown").innerHTML = "45";
document.getElementById("autoreload-countdown").style.visibility = "visible";
timer = setInterval(timerFunction, 1000);
document.removeEventListener("DOMContentLoaded", contentLoadHandler, false);
@@ -27,12 +27,12 @@ function timerFunction(){
function autoTimer(){
timerToggle = !timerToggle;
if(timerToggle === true){
- timerCount = 5;
- document.getElementById("autoreload-countdown").innerHTML = "5";
+ timerCount = 45;
+ document.getElementById("autoreload-countdown").innerHTML = "45";
document.getElementById("autoreload-countdown").style.visibility = "visible";
timer = setInterval(timerFunction, 1000);
}else{
clearInterval(timer);
document.getElementById("autoreload-countdown").style.visibility = "hidden";
}
-} \ No newline at end of file
+}