diff --git a/60LED_WS2812B_NTP_Clock.ino b/60LED_WS2812B_NTP_Clock.ino index 886c2bb..25ed655 100644 --- a/60LED_WS2812B_NTP_Clock.ino +++ b/60LED_WS2812B_NTP_Clock.ino @@ -100,15 +100,15 @@ const char wifiInitialApPassword[] = "12345678"; #define STRING_LEN 63 #define NUMBER_LEN 4 // -- Configuration specific key. The value should be modified if config structure was changed. -#define CONFIG_VERSION "dem6" +#define CONFIG_VERSION "V1.0.0" // -- Javascript block will be added to the header. 🔒 🔓 const char CUSTOMHTML_SCRIPT_INNER[] PROGMEM = "\n\ document.addEventListener('DOMContentLoaded', function(event) {\n\ let elements = document.querySelectorAll('input[type=\"password\"]');\n\ for (let p of elements) {\n\ - let btn = document.createElement('INPUT'); btn.type = 'button'; btn.value = 'show'; btn.style.width = 'auto'; p.style.width = '83%'; p.parentNode.insertBefore(btn,p.nextSibling);\n\ - btn.onclick = function() { if (p.type === 'password') { p.type = 'text'; btn.value = 'hide'; } else { p.type = 'password'; btn.value = 'show'; } }\n\ + let btn = document.createElement('INPUT'); btn.type = 'button'; btn.value = '🔓'; btn.style.width = 'auto'; p.style.width = '83%'; p.parentNode.insertBefore(btn,p.nextSibling);\n\ + btn.onclick = function() { if (p.type === 'password') { p.type = 'text'; btn.value = '🔒'; } else { p.type = 'password'; btn.value = '🔓'; } }\n\ };\n\ });\n"; //const char CUSTOMHTML_BODY_INNER[] PROGMEM = " "; @@ -233,8 +233,8 @@ void iotWebConfConfigSaved() Serial.println("Configuration was updated."); } - -boolean iotWebConfFormValidator() +/* +bool iotWebConfFormValidator(iotwebconf::WebRequestWrapper* webRequestWrapper) { Serial.println("Validating form."); @@ -253,6 +253,7 @@ boolean iotWebConfFormValidator() } return valid; } +*/ void iotWebConf_Setup() { @@ -268,7 +269,7 @@ void iotWebConf_Setup() { iotWebConf.setConfigSavedCallback(&iotWebConfConfigSaved); iotWebConf.setWifiConnectionCallback(&syncNTP); //NTP call after connection established - iotWebConf.setFormValidator(&iotWebConfFormValidator); + //iotWebConf.setFormValidator(&iotWebConfFormValidator); iotWebConf.getApTimeoutParameter()->visible = true; iotWebConf.setupUpdateServer( [](const char* updatePath) { diff --git a/60LED_WS2812B_NTP_Clock.ino.lolin32.bin b/60LED_WS2812B_NTP_Clock.ino.lolin32.bin deleted file mode 100644 index 1379145..0000000 Binary files a/60LED_WS2812B_NTP_Clock.ino.lolin32.bin and /dev/null differ diff --git a/60LED_WS2812B_NTP_Clock.ino.lolin32.v1.0.0.bin b/60LED_WS2812B_NTP_Clock.ino.lolin32.v1.0.0.bin new file mode 100644 index 0000000..e75b0da Binary files /dev/null and b/60LED_WS2812B_NTP_Clock.ino.lolin32.v1.0.0.bin differ