Created
March 2, 2015 12:56
-
-
Save danreedy/53865f220469b3ead5e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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