embled 2
<html><head><link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"><link href="https://fonts.googleapis.com/css?family=Hammersmith+One" rel="stylesheet" type="text/css"><link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"><link href="https://fonts.googleapis.com/css?family=Hammersmith+One" rel="stylesheet" type="text/css"></head><body><img class="double_border" style="width:1280px; height:720px;" alt="grass webcam" title="grass webcam" src="https://fogcam.org/fogcam2.jpg?wgg1736455782954" id="webcam">
<script>
view = "newgrass";
ts = 1000; // interval spacing in milliseconds
tsrandom = 20; // random interval in milliseconds
var timecount = 0;
var timeend = 600000;
imageoffline = "https://fogcam.org/fogcam2.jpg";
imagenewgrass = "https://fogcam.org/fogcam2.jpg";
imageoldgrass = "https://fogcam.org/fogcam2.jpg";
image=imagenewgrass;
function RefreshImage() {
timecount = timecount + ts;
tsrand = Math.floor(tsrandom*Math.random());
tmp = new Date();
tmp = "?wgg"+tmp.getTime();
if (view == "alternate") {
if ( image == imageoldgrass ) {
image = imagenewgrass;
} else {
image = imageoldgrass;
}
} else if (view == "oldgrass") {
image = imageoldgrass;
} else if (view == "newgrass") {
image = imagenewgrass;
} else {
view = grass;
image = imageoldgrass;
}
if (timecount>timeend) {
image = "https://fogcam.org/fogcam2.jpg";
ts = timeend;
}
document.images["webcam"].src = image+tmp;
setTimeout("RefreshImage()", (ts+tsrand));
}
function Start() {
setTimeout("RefreshImage()", 500);
}
function alternatewebcam(string){
view = "alternate";
}
function oldgrasswebcam(string){
view = "oldgrass";
}
function newgrasswebcam(string){
view = "newgrass";
}
Start();
view = "newgrass";
ts = 1000; // interval spacing in milliseconds
tsrandom = 20; // random interval in milliseconds
var timecount = 0;
var timeend = 600000;
imageoffline = "https://fogcam.org/fogcam2.jpg";
imagenewgrass = "https://fogcam.org/fogcam2.jpg";
imageoldgrass = "https://fogcam.org/fogcam2.jpg";
image=imagenewgrass;
function RefreshImage() {
timecount = timecount + ts;
tsrand = Math.floor(tsrandom*Math.random());
tmp = new Date();
tmp = "?wgg"+tmp.getTime();
if (view == "alternate") {
if ( image == imageoldgrass ) {
image = imagenewgrass;
} else {
image = imageoldgrass;
}
} else if (view == "oldgrass") {
image = imageoldgrass;
} else if (view == "newgrass") {
image = imagenewgrass;
} else {
view = grass;
image = imageoldgrass;
}
if (timecount>timeend) {
image = "https://fogcam.org/fogcam2.jpg";
ts = timeend;
}
document.images["webcam"].src = image+tmp;
setTimeout("RefreshImage()", (ts+tsrand));
}
function Start() {
setTimeout("RefreshImage()", 500);
}
function alternatewebcam(string){
view = "alternate";
}
function oldgrasswebcam(string){
view = "oldgrass";
}
function newgrasswebcam(string){
view = "newgrass";
}
Start();
</script>
</body></html>
point2.cgi code
Comments
Post a Comment