From 46ec46e26d32b327f4b540a6469e775efe1b3826 Mon Sep 17 00:00:00 2001 From: Eric Fawcett Date: Fri, 10 Apr 2020 12:16:39 -0400 Subject: [PATCH] reload page every 3600 seconds --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 7fa9703..bd16122 100644 --- a/index.html +++ b/index.html @@ -62,6 +62,8 @@ setIMG(camList); //load initial images setInterval(setIMG, 6000, camList); //set timer to continuously reload images. + + setInterval(reloadPage, 3600000); //set timer to reload page. }); @@ -84,6 +86,12 @@ $("#cam" + camNum).attr("src", camURL); } + + function reloadPage(){ + + window.location = window.location.href; + + }