From fdefcfa2a98207e670594c5a112503d73739acf5 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Wed, 7 Jul 2021 10:50:10 -0700 Subject: increased auto-refresh timer --- static/js/timer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'static') 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 +} -- cgit v1.2.3