From a66ef0ac39450704477fe71498df69c13f6d7ff2 Mon Sep 17 00:00:00 2001 From: Michael Clemens // DK1MI Date: Tue, 30 May 2023 16:58:50 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ewt32pamon.ino=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wt32pamon.ino | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/wt32pamon.ino b/wt32pamon.ino index 91478e3..e5c0ac3 100644 --- a/wt32pamon.ino +++ b/wt32pamon.ino @@ -405,10 +405,13 @@ void handleCONFIG() { String css = CFG_STYLESHEET; conf_content = css; - conf_content += "

Configuration

"; - conf_content += "

Band Selection

"; + + conf_content += "
"; + conf_content += "
"; + conf_content += "Configuration
"; + conf_content += "
"; conf_content += "
"; - conf_content += ""; for (int i = 0; i < sizeof band_list / sizeof band_list[0]; i++) { String selected = ""; if (band_list[i] == band) { @@ -417,15 +420,20 @@ void handleCONFIG() { conf_content += ""; } conf_content += "
"; - conf_content += "

"; - conf_content += "

Translation Detector voltage /mV to RF-Power level /dBm

"; + conf_content += "
"; + conf_content += "
Translation Detector Voltage /mV to RF-Power level /dBm
"; + + conf_content += "
"; conf_content += conf_textareas; - conf_content += "

"; - conf_content += "

General Configuration Items

"; - conf_content += "

"; + conf_content += "

"; + conf_content += "
General Configuration Items
"; + conf_content += "
"; conf_content += conf_config_table; - conf_content += "

"; - conf_content += "

Version " + version; + conf_content += "

"; + conf_content += "
"; + conf_content += "
- Version: " + version+ "
"; + conf_content += "
"; + conf_content += "
"; conf_content += ""; server.send(200, "text/html", conf_content); } @@ -446,7 +454,7 @@ void build_textareas() { tbl += ""; tbl += ""; tbl += "
" + band + " FWD (mV:dBm)" + band + " REF (mV:dBm)
"; - tbl += ""; tbl += ""; - tbl += ""; tbl += "
"; - tbl += "

"; + tbl += ""; tbl += ""; conf_textareas = tbl; } @@ -472,7 +480,7 @@ void build_textareas() { void build_config_table() { conf_config_table = "

"; conf_config_table += ""; - conf_config_table += ""; + //conf_config_table += ""; for (int i = 0; i < sizeof band_config_items / sizeof band_config_items[0]; i++) { if (!band_config_items[i].startsWith("x_")) { String stored_val = config.getString(band_config_items[i].c_str(), "xxx"); @@ -494,8 +502,8 @@ void build_config_table() { conf_config_table += ""; } } - conf_config_table += ""; - conf_config_table += "
KeyValue
KeyValue
"; + //conf_config_table += ""; + conf_config_table += ""; handleCONFIG(); }