You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
593 B

<html>
<head>
<title>MiniWebCam</title>
</head>
<body>
<img id="myimage1" src="snapshot.jpg"></img>
<br>
<img id="myimage2" src="snapshot-float.jpg"></img>
</body>
<script>
function reloadImage() {
const img1 = document.getElementById('myimage1');
let src1 = img1.src.split('?')[0];
src1 = src1 + '?' + new Date().getTime();
img1.src = src1;
const img2 = document.getElementById('myimage2');
let src2 = img2.src.split('?')[0];
src2 = src2 + '?' + new Date().getTime();
img2.src = src2;
}
setInterval(reloadImage, 250);
</script>
</html>