From d4a0ad20ffbd31eb25cf0fd44eb8be5533eb7eaf Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sat, 17 Feb 2024 00:40:46 +0100 Subject: [PATCH] Restructure menus (#2921) * renamed config pages * restructured menu --- sd-card/html/.gitignore | 2 +- .../html/{edit_config.html => edit_config_raw.html} | 0 ...param_template.html => edit_config_template.html} | 12 ++++++------ sd-card/html/index.html | 12 ++++++------ sd-card/html/ota_page.html | 2 +- sd-card/html/setup.html | 2 +- .../generate-param-doc-tooltips.py | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) rename sd-card/html/{edit_config.html => edit_config_raw.html} (100%) rename sd-card/html/{edit_config_param_template.html => edit_config_template.html} (99%) diff --git a/sd-card/html/.gitignore b/sd-card/html/.gitignore index 670a212a..ccfb4922 100644 --- a/sd-card/html/.gitignore +++ b/sd-card/html/.gitignore @@ -1 +1 @@ -edit_config_param.html +edit_config.html diff --git a/sd-card/html/edit_config.html b/sd-card/html/edit_config_raw.html similarity index 100% rename from sd-card/html/edit_config.html rename to sd-card/html/edit_config_raw.html diff --git a/sd-card/html/edit_config_param_template.html b/sd-card/html/edit_config_template.html similarity index 99% rename from sd-card/html/edit_config_param_template.html rename to sd-card/html/edit_config_template.html index 02293b80..23d03a24 100644 --- a/sd-card/html/edit_config_param_template.html +++ b/sd-card/html/edit_config_template.html @@ -220,7 +220,7 @@ - + @@ -2508,11 +2508,11 @@ function UpdateExpertModus() { // _style = ''; _style_pur = ''; _hidden = false; - document.getElementById("Edit_Config_Direct").style.display = ""; + document.getElementById("Button_Edit_Config_Raw").style.display = ""; firework.launch("Expert view activated. Please use carefully", 'warning', 5000); } else { - document.getElementById("Edit_Config_Direct").style.display = "none"; + document.getElementById("Button_Edit_Config_Raw").style.display = "none"; } const expert = document.querySelectorAll(".expert"); @@ -2568,9 +2568,9 @@ function doReboot() { } -function editConfigDirect() { - if (confirm("Proceed to switch the view? Unsaved changes get lost")) { - var stringota = getDomainname() + "/edit_config.html?v=$COMMIT_HASH"; +function editConfigRaw() { + if (confirm("Proceed to switch to raw edit mode? Unsaved changes will get lost")) { + var stringota = getDomainname() + "/edit_config_raw.html?v=$COMMIT_HASH"; window.location = stringota; window.location.href = stringota; window.location.assign(stringota); diff --git a/sd-card/html/index.html b/sd-card/html/index.html index 62c1b248..109f5d64 100644 --- a/sd-card/html/index.html +++ b/sd-card/html/index.html @@ -24,7 +24,7 @@ 'channelmode=no,directories=no,fullscreen=no,' + 'location=no,dependent=yes,menubar=no,resizable=no,scrollbars=no,' + 'status=no,toolbar=no,titlebar=no,' + - 'left=10,top=250,width=640px,height=480px'; + 'left=10,top=260,width=640px,height=480px'; function loadPage(page) { console.log("loadPage( " + page + " )"); @@ -88,21 +88,21 @@