reload page every 3600 seconds

This commit is contained in:
Eric Fawcett 2020-04-10 12:16:39 -04:00
parent 45aae7466b
commit 46ec46e26d
1 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,8 @@
setIMG(camList); //load initial images setIMG(camList); //load initial images
setInterval(setIMG, 6000, camList); //set timer to continuously reload 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); $("#cam" + camNum).attr("src", camURL);
} }
function reloadPage(){
window.location = window.location.href;
}
</script> </script>
</head> </head>
<body> <body>