From a245cfda1422cfe9d2d7471047383a17480ecdf9 Mon Sep 17 00:00:00 2001 From: Janis Steiner Date: Mon, 28 Oct 2024 13:53:13 +0000 Subject: [PATCH] adding image display on first load --- sys0-code/app/webcam.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys0-code/app/webcam.php b/sys0-code/app/webcam.php index df51d4b..b62b954 100644 --- a/sys0-code/app/webcam.php +++ b/sys0-code/app/webcam.php @@ -34,7 +34,8 @@ }; xhr.send(); // Execute the request } - + //do first load + loadAndSwapImage(); // Reload the image every 5 seconds setInterval(loadAndSwapImage, 5000);