From ea71c86f694f3ea94cd57c9bb09e765504345075 Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 20:46:27 +0200 Subject: [PATCH 01/10] removed unused styles --- sd-card/html/edit_explain_0.html | 3 --- sd-card/html/edit_explain_6.html | 3 --- sd-card/html/explain_0.html | 3 --- sd-card/html/explain_1.html | 2 -- sd-card/html/explain_2.html | 3 --- sd-card/html/explain_3.html | 2 -- sd-card/html/explain_4.html | 3 --- sd-card/html/explain_5.html | 3 --- sd-card/html/explain_6.html | 2 -- 9 files changed, 24 deletions(-) diff --git a/sd-card/html/edit_explain_0.html b/sd-card/html/edit_explain_0.html index 338797b9..c90bff3c 100644 --- a/sd-card/html/edit_explain_0.html +++ b/sd-card/html/edit_explain_0.html @@ -7,9 +7,6 @@ + + + + - + +
@@ -101,52 +43,14 @@ li.dropdown { Info -

- -

- -
- - - - + + + diff --git a/sd-card/html/index_configure.html b/sd-card/html/index_configure.html index 19afc3b9..8bf12c6a 100644 --- a/sd-card/html/index_configure.html +++ b/sd-card/html/index_configure.html @@ -5,73 +5,11 @@ jomjol - AI on the edge - - - - + +
@@ -98,45 +36,17 @@ li.dropdown { -

-

- -
- + + + + + + + + From 774dde57674058f4856c9b7975d06fc729e34c11 Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 22:06:05 +0200 Subject: [PATCH 06/10] changed color of selected submenu entries to red 8like selected main menu entries) --- sd-card/html/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sd-card/html/style.css b/sd-card/html/style.css index e8e8e1b3..68b2260f 100644 --- a/sd-card/html/style.css +++ b/sd-card/html/style.css @@ -90,7 +90,8 @@ li.dropdown { } .dropdown-content a:hover { - background-color: #f1f1f1; + color: white; + background-color: red; } .dropdown:hover .dropdown-content { From b1e0203527629477745f9aabc359e6e29db476d0 Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 22:06:37 +0200 Subject: [PATCH 07/10] added system menu to configure_index.html, reformating --- sd-card/html/index_configure.html | 37 +++++++++++++++++++------------ 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/sd-card/html/index_configure.html b/sd-card/html/index_configure.html index 8bf12c6a..2755a792 100644 --- a/sd-card/html/index_configure.html +++ b/sd-card/html/index_configure.html @@ -19,22 +19,31 @@
From 5dc7b90a1c8d971e4b34909028e4789fd0976de6 Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 22:06:51 +0200 Subject: [PATCH 08/10] reformating --- sd-card/html/index.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/sd-card/html/index.html b/sd-card/html/index.html index b57c64dd..f5af90fc 100644 --- a/sd-card/html/index.html +++ b/sd-card/html/index.html @@ -24,24 +24,25 @@ From 592b93ce2bba52ac1984a0d9807d614921e5f2ef Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 22:07:25 +0200 Subject: [PATCH 09/10] added reboot buttons to config pages --- sd-card/html/edit_alignment.html | 17 +++++++++++++++-- sd-card/html/edit_analog.html | 16 ++++++++++++++-- sd-card/html/edit_digits.html | 12 ++++++++++++ sd-card/html/edit_reference.html | 14 ++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/sd-card/html/edit_alignment.html b/sd-card/html/edit_alignment.html index 166231b1..f0488261 100644 --- a/sd-card/html/edit_alignment.html +++ b/sd-card/html/edit_alignment.html @@ -86,7 +86,10 @@ select { - + + + +
@@ -107,7 +110,17 @@ select { basepath = "http://192.168.178.26"; basepath = "", param; - + +function doReboot() { + if (confirm("Are you sure you want to reboot? Did you save the config?")) { + var stringota = "/reboot"; + window.location = stringota; + window.location.href = stringota; + window.location.assign(stringota); + window.location.replace(stringota); + } +} + function ChangeSelection(){ aktindex = parseInt(document.getElementById("index").value); UpdateReference(); diff --git a/sd-card/html/edit_analog.html b/sd-card/html/edit_analog.html index 61d4237c..572cd094 100644 --- a/sd-card/html/edit_analog.html +++ b/sd-card/html/edit_analog.html @@ -129,6 +129,9 @@ th, td { + + + @@ -147,8 +150,17 @@ th, td { enhanceCon = false; lockAR = true; basepath = "http://192.168.178.26"; - - + +function doReboot() { + if (confirm("Are you sure you want to reboot? Did you save the config?")) { + var stringota = "/reboot"; + window.location = stringota; + window.location.href = stringota; + window.location.assign(stringota); + window.location.replace(stringota); + } +} + function EnDisableAnalog() { isEnabled = document.getElementById("Category_Analog_enabled").checked; diff --git a/sd-card/html/edit_digits.html b/sd-card/html/edit_digits.html index 711db2f1..6a62566a 100644 --- a/sd-card/html/edit_digits.html +++ b/sd-card/html/edit_digits.html @@ -119,6 +119,9 @@ th, td { + + +
@@ -140,6 +143,15 @@ th, td { lockAR = true; basepath = "http://192.168.178.26"; + function doReboot() { + if (confirm("Are you sure you want to reboot? Did you save the config?")) { + var stringota = "/reboot"; + window.location = stringota; + window.location.href = stringota; + window.location.assign(stringota); + window.location.replace(stringota); + } + } function EnDisableDigits() { isEnabled = document.getElementById("Category_Digits_enabled").checked; diff --git a/sd-card/html/edit_reference.html b/sd-card/html/edit_reference.html index 23d4551b..74c3cdaa 100644 --- a/sd-card/html/edit_reference.html +++ b/sd-card/html/edit_reference.html @@ -35,6 +35,7 @@ table {

Create Reference out of Raw Image

+

Note: After saving a new Reference Image, make sure to update the Alignment Marks and the ROI's and reboot once!

@@ -85,6 +86,9 @@ table { + + +
@@ -102,6 +106,16 @@ table { basepath = "http://192.168.178.26"; isActReference = false; param; + + function doReboot() { + if (confirm("Are you sure you want to reboot? Did you save the config?")) { + var stringota = "/reboot"; + window.location = stringota; + window.location.href = stringota; + window.location.assign(stringota); + window.location.replace(stringota); + } + } function doTake(){ var xhttp = new XMLHttpRequest(); From ab41401643440a1058d2213c837af7faf0c70fdc Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 30 Aug 2022 22:41:33 +0200 Subject: [PATCH 10/10] add min iframe height (to fix view on android chrome browser) --- sd-card/html/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sd-card/html/style.css b/sd-card/html/style.css index 68b2260f..4d8db3eb 100644 --- a/sd-card/html/style.css +++ b/sd-card/html/style.css @@ -1,6 +1,7 @@ body, html { width: 100%; height: 100%; + min-height: 800px; margin: 0px 0px 0px 2px; padding: 0; font-family: arial; @@ -19,7 +20,7 @@ body, html { flex-grow: 1; margin: 5px 7px 4px 0px; padding: 0; - border: 2px solid black + border: 2px solid black; } h1 {