Skip to content

Commit

Permalink
updated web design
Browse files Browse the repository at this point in the history
  • Loading branch information
Miroslav Pivovarsky committed May 31, 2024
1 parent 4243473 commit 55caed0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ESP32_PrusaConnectCam/WebPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const char index_html[] PROGMEM = R"rawliteral(
<head>
<meta name="Prusa ESP32-cam" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<title>Prusa ESP32-cam</title>

<link rel="stylesheet" type="text/css" href="styles.css">
<script src="jquery-3.7.0.min.js"></script>
Expand Down Expand Up @@ -80,8 +79,8 @@ const char index_html[] PROGMEM = R"rawliteral(
<div id="cfg">
<div id="cfg_bar">
<div id="links">
<li><a href="page_config.html">Camera configuration</a></li>
<li><a href="page_wifi.html">Wi-Fi configuration</a></li>
<li><a href="page_config.html">Camera</a></li>
<li><a href="page_wifi.html">Wi-Fi</a></li>
<li><a href="page_auth.html">Authentication</a></li>
<li><a href="page_system.html">System</a></li>
</div>
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 3 additions & 4 deletions webpage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<head>
<meta name="Prusa ESP32-cam" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<title>Prusa ESP32-cam</title>

<link rel="stylesheet" type="text/css" href="styles.css">
<script src="jquery-3.7.0.min.js"></script>
Expand Down Expand Up @@ -54,8 +53,8 @@
<div id="cfg">
<div id="cfg_bar">
<div id="links">
<li><a href="page_config.html">Camera configuration</a></li>
<li><a href="page_wifi.html">Wi-Fi configuration</a></li>
<li><a href="page_config.html">Camera</a></li>
<li><a href="page_wifi.html">Wi-Fi</a></li>
<li><a href="page_auth.html">Authentication</a></li>
<li><a href="page_system.html">System</a></li>
</div>
Expand All @@ -79,4 +78,4 @@
addClickListener('github-link');
addClickListener('forum-link');
</script>
</html>
</html>
3 changes: 2 additions & 1 deletion webpage/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 55caed0

Please sign in to comment.