diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index c97825240..f67c9d4ca 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -25,17 +25,17 @@ * Based on source by AlexT (https://github.com/tzapu) \*********************************************************************************************/ -#define XDRV_01 1 +#define XDRV_01 1 // Enable below demo feature only if defines USE_UNISHOX_COMPRESSION and USE_SCRIPT_WEB_DISPLAY are disabled //#define USE_WEB_SSE #ifndef WIFI_SOFT_AP_CHANNEL -#define WIFI_SOFT_AP_CHANNEL 1 // Soft Access Point Channel number between 1 and 11 as used by WifiManager web GUI +#define WIFI_SOFT_AP_CHANNEL 1 // Soft Access Point Channel number between 1 and 11 as used by WifiManager web GUI #endif #ifndef MAX_WIFI_NETWORKS_TO_SHOW -#define MAX_WIFI_NETWORKS_TO_SHOW 3 // Maximum number of Wifi Networks to show in the Wifi Configuration Menu BEFORE clicking on Show More Networks. +#define MAX_WIFI_NETWORKS_TO_SHOW 3 // Maximum number of Wifi Networks to show in the Wifi Configuration Menu BEFORE clicking on Show More Networks. #endif #ifndef RESTART_AFTER_INITIAL_WIFI_CONFIG @@ -108,7 +108,6 @@ const char HTTP_SCRIPT_COUNTER[] PROGMEM = #include "./html_uncompressed/HTTP_SCRIPT_ROOT_PART2.h" #endif - const char HTTP_SCRIPT_WIFI[] PROGMEM = "function c(l){" "eb('s1').value=l.innerText||l.textContent;" @@ -117,13 +116,13 @@ const char HTTP_SCRIPT_WIFI[] PROGMEM = const char HTTP_SCRIPT_HIDE[] PROGMEM = "function hidBtns() {" - "eb('butmo').style.display = 'none';" - "eb('butmod').style.display = 'none';" - "eb('but0').style.display = 'block';" - "eb('but1').style.display = 'block';" - "eb('but13').style.display = 'block';" - "eb('but0d').style.display = 'block';" - "eb('but13d').style.display = 'block';" + "eb('butmo').style.display='none';" + "eb('butmod').style.display='none';" + "eb('but0').style.display='block';" + "eb('but1').style.display='block';" + "eb('but13').style.display='block';" + "eb('but0d').style.display='block';" + "eb('but13d').style.display='block';" "}"; const char HTTP_SCRIPT_RELOAD_TIME[] PROGMEM = @@ -135,14 +134,11 @@ const char HTTP_SCRIPT_RELOAD_TIME[] PROGMEM = #include "./html_uncompressed/HTTP_SCRIPT_CONSOL.h" #endif - const char HTTP_MODULE_TEMPLATE_REPLACE_INDEX[] PROGMEM = "}2%d'>%s (%d)}3"; // }2 and }3 are used in below os.replace const char HTTP_MODULE_TEMPLATE_REPLACE_NO_INDEX[] PROGMEM = "}2%d'>%s}3"; // }2 and }3 are used in below os.replace - - #ifdef USE_UNISHOX_COMPRESSION #include "./html_compressed/HTTP_SCRIPT_MODULE_TEMPLATE.h" #include "./html_compressed/HTTP_SCRIPT_TEMPLATE.h" @@ -151,7 +147,6 @@ const char HTTP_MODULE_TEMPLATE_REPLACE_NO_INDEX[] PROGMEM = #include "./html_uncompressed/HTTP_SCRIPT_TEMPLATE.h" #endif - const char HTTP_SCRIPT_TEMPLATE2[] PROGMEM = "j=0;" "for(i=0;i<" STR(MAX_USER_PINS) ";i++){" // Supports 13 GPIOs @@ -199,7 +194,6 @@ const char HTTP_SCRIPT_INFO_END[] PROGMEM = "}" "wl(i);"; - #ifdef USE_UNISHOX_COMPRESSION #include "./html_compressed/HTTP_HEAD_LAST_SCRIPT.h" #include "./html_compressed/HTTP_HEAD_STYLE1.h" @@ -210,7 +204,6 @@ const char HTTP_SCRIPT_INFO_END[] PROGMEM = #include "./html_uncompressed/HTTP_HEAD_STYLE2.h" #endif - #ifdef USE_ZIGBEE // Styles used for Zigbee Web UI // Battery icon from https://css.gg/battery