adding image display on first load
This commit is contained in:
@@ -34,7 +34,8 @@
|
|||||||
};
|
};
|
||||||
xhr.send(); // Execute the request
|
xhr.send(); // Execute the request
|
||||||
}
|
}
|
||||||
|
//do first load
|
||||||
|
loadAndSwapImage();
|
||||||
// Reload the image every 5 seconds
|
// Reload the image every 5 seconds
|
||||||
setInterval(loadAndSwapImage, 5000);
|
setInterval(loadAndSwapImage, 5000);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user