From 55caed062cf8ee164934e7c5ac5446cbc93e2dd7 Mon Sep 17 00:00:00 2001 From: Miroslav Pivovarsky Date: Fri, 31 May 2024 22:57:09 +0200 Subject: [PATCH] updated web design --- ESP32_PrusaConnectCam/WebPage.h | 8 ++++---- webpage/index.html | 7 +++---- webpage/scripts.js | 3 ++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ESP32_PrusaConnectCam/WebPage.h b/ESP32_PrusaConnectCam/WebPage.h index 04c3784..9e36334 100644 --- a/ESP32_PrusaConnectCam/WebPage.h +++ b/ESP32_PrusaConnectCam/WebPage.h @@ -28,7 +28,6 @@ const char index_html[] PROGMEM = R"rawliteral( - Prusa ESP32-cam @@ -80,8 +79,8 @@ const char index_html[] PROGMEM = R"rawliteral(
@@ -890,7 +889,8 @@ function get_data(val) { img.src = (obj.led == "true") ? 'light-on-icon.svg' : 'light-off-icon.svg'; document.getElementById('light-icon').appendChild(img); } - + document.title = obj.mdns; + if (val == "config") { $("#fingerprint").text(obj.fingerprint); $("#refreshInterval").text(obj.refreshInterval); diff --git a/webpage/index.html b/webpage/index.html index 2e52c93..a70e709 100644 --- a/webpage/index.html +++ b/webpage/index.html @@ -2,7 +2,6 @@ - Prusa ESP32-cam @@ -54,8 +53,8 @@
@@ -79,4 +78,4 @@ addClickListener('github-link'); addClickListener('forum-link'); - + \ No newline at end of file diff --git a/webpage/scripts.js b/webpage/scripts.js index 95f896f..dcc159d 100644 --- a/webpage/scripts.js +++ b/webpage/scripts.js @@ -14,7 +14,8 @@ function get_data(val) { img.src = (obj.led == "true") ? 'light-on-icon.svg' : 'light-off-icon.svg'; document.getElementById('light-icon').appendChild(img); } - + document.title = obj.mdns; + if (val == "config") { $("#fingerprint").text(obj.fingerprint); $("#refreshInterval").text(obj.refreshInterval);