Skip to content

Instantly share code, notes, and snippets.

@danreedy
Created March 2, 2015 12:56
Show Gist options
  • Save danreedy/53865f220469b3ead5e2 to your computer and use it in GitHub Desktop.
Save danreedy/53865f220469b3ead5e2 to your computer and use it in GitHub Desktop.
<img id="webcam" src="https://www.webcam-4insiders.com/current/medium/14082-Webcam-Leysin-Wetter.jpg" alt="LAS Gym Construction">
<script type="text/javascript">
var refreshImage = function() {
var refreshInterval = 600000; // This is time in milliseconds; 60,000 = 10 minutes
var source = "https://www.webcam-4insiders.com/current/medium/14082-Webcam-Leysin-Wetter.jpg?time=" + new Date().getTime();
document.getElementById('webcam').src = source;
setTimeout(refreshImage, 600000);
}
refreshImage();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment