reload page every 3600 seconds
This commit is contained in:
parent
45aae7466b
commit
46ec46e26d
|
|
@ -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;
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue