ocean deck live webcam

by SHELDON PASCIAK

HTML

<!-- the line below puts the image on the screen, the source for the image is created each time it loads because the /image.cgi is a program that runs on the webcam -->
<img id="t" style="width:100%;height:100%;" src="http://75.112.5.226/axis-cgi/jpg/image.cgi?camera=1"></img>

JavaScript

var myVar;

// this function reloads the image ever 500 (miliseconds)  (every half a second)
function doSomething() {

document.getElementById('t').src="http://75.112.5.226/axis-cgi/jpg/image.cgi?camera=1&test=" + Date.now();

myVar = setTimeout(doSomething, 1500);

}

doSomething();