adding image display on first load

This commit is contained in:
Janis Steiner
2024-10-28 13:53:13 +00:00
parent 00209479bb
commit a245cfda14

View File

@@ -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>