aboutsummaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authorFChannel <>2021-07-07 10:50:10 -0700
committerFChannel <>2021-07-07 10:50:10 -0700
commitfdefcfa2a98207e670594c5a112503d73739acf5 (patch)
tree63d162c15c6b8620de97dac8c0b2b0d74b3766f8 /static/js
parentc78d2f1d22e49868870166ead4b115731e054b4f (diff)
increased auto-refresh timer
Diffstat (limited to 'static/js')
-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
+}