diff --git a/src/AutoConnect.h b/src/AutoConnect.h index 17c6bab..315de3d 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -342,6 +342,7 @@ class AutoConnect { String _token_CHIP_ID(PageArgument& args); String _token_FREE_HEAP(PageArgument& args); String _token_LIST_SSID(PageArgument& args); + String _token_SSID_COUNT(PageArgument& args); String _token_HIDDEN_COUNT(PageArgument& args); String _token_OPEN_SSID(PageArgument& args); String _token_UPTIME(PageArgument& args); diff --git a/src/AutoConnectDefs.h b/src/AutoConnectDefs.h index cfb14dc..57baad2 100644 --- a/src/AutoConnectDefs.h +++ b/src/AutoConnectDefs.h @@ -127,6 +127,11 @@ #define AUTOCONNECT_CONTENTBUFFER_SIZE 0 #endif // !AUTOCONNECT_CONTENTBUFFER_SIZE +// Number of unit lines in the page that lists available SSIDs +#ifndef AUTOCONNECT_SSIDPAGEUNIT_LINES +#define AUTOCONNECT_SSIDPAGEUNIT_LINES 5 +#endif // !AUTOCONNECT_SSIDPAGEUNIT_LINES + // SD pin assignment for AutoConnectFile #ifndef AUTOCONNECT_SD_CS #if defined(ARDUINO_ARCH_ESP8266) @@ -147,4 +152,4 @@ // Explicitly avoiding unused warning with token handler of PageBuilder #define AC_UNUSED(expr) do { (void)(expr); } while (0) -#endif // _AUTOCONNECTDEFS_H_ \ No newline at end of file +#endif // _AUTOCONNECTDEFS_H_ diff --git a/src/AutoConnectPage.cpp b/src/AutoConnectPage.cpp index 6e983a5..cf37d5a 100644 --- a/src/AutoConnectPage.cpp +++ b/src/AutoConnectPage.cpp @@ -138,7 +138,7 @@ const char AutoConnect::_CSS_ICON_LOCK[] PROGMEM = { /**< INPUT button and submit style */ const char AutoConnect::_CSS_INPUT_BUTTON[] PROGMEM = { - "input[type=\"button\"],input[type=\"submit\"]{" + "input[type=\"button\"],input[type=\"submit\"],button[type=\"submit\"]{" "padding:8px 30px;" "font-weight:bold;" "letter-spacing:0.8px;" @@ -161,12 +161,12 @@ const char AutoConnect::_CSS_INPUT_BUTTON[] PROGMEM = { "input#sb[type=\"submit\"]{" "width:15em;" "}" - "input[type=\"submit\"]{" + "input[type=\"submit\"],button[type=\"submit\"]{" "background-color:#006064;" "border-color:#006064;" "}" - "input[type=\"button\"],input[type=\"submit\"]:focus," - "input[type=\"button\"],input[type=\"submit\"]:active{" + "input[type=\"button\"],input[type=\"submit\"],button[type=\"submit\"]:focus," + "input[type=\"button\"],input[type=\"submit\"],button[type=\"submit\"]:active{" "outline:none;" "text-decoration:none;" "}" @@ -671,7 +671,7 @@ const char AutoConnect::_PAGE_CONFIGNEW[] PROGMEM = { "