reload page every 3600 seconds
This commit is contained in:
parent
45aae7466b
commit
46ec46e26d
|
|
@ -63,6 +63,8 @@
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function loadTitle(camDat, camNum){
|
function loadTitle(camDat, camNum){
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue