diff --git a/docs/images/PageBuilder.png b/docs/images/PageBuilder.png index 6db7125..0ac01ef 100644 Binary files a/docs/images/PageBuilder.png and b/docs/images/PageBuilder.png differ diff --git a/examples/Credential/Credential.ino b/examples/Credential/Credential.ino index 4d4db07..89c4bdf 100644 --- a/examples/Credential/Credential.ino +++ b/examples/Credential/Credential.ino @@ -41,47 +41,48 @@ String delCredential(PageArgument&); * The number of the entry to be deleted is passed to the function in the * POST method. */ -static const char html[] PROGMEM = { -"" -"" -"
" - "" - "" -"" -"" -"" -"" -"" -"" -}; +static const char PROGMEM html[] = R"*lit( + + + + + + + + + + + +)*lit"; + +static const char PROGMEM autoconnectMenu[] = { AUTOCONNECT_LINK(BAR_24) }; // URL path as '/' -PageElement elmList(html, {{ "SSID", viewCredential }}); +PageElement elmList(html, + {{ "SSID", viewCredential }, + { "AUTOCONNECT_MENU", [](PageArgument& args) { + return String(FPSTR(autoconnectMenu));} } + }); PageBuilder rootPage("/", { elmList }); // URL path as '/del' diff --git a/examples/HandleClient/HandleClient.ino b/examples/HandleClient/HandleClient.ino index fd2764b..1d5d1cb 100644 --- a/examples/HandleClient/HandleClient.ino +++ b/examples/HandleClient/HandleClient.ino @@ -26,8 +26,12 @@ void handleRoot() { "font-family:'Arial',sans-serif;" "text-align:center;" "}" - ".menu {" - "text-align:right;" + ".menu > a:link {" + "position: absolute;" + "display: inline-block;" + "right: 12px;" + "padding: 0 6px;" + "text-decoration: none;" "}" ".button {" "display:inline-block;" @@ -41,7 +45,7 @@ void handleRoot() { "" "" "" - " " + " " "BUILT-IN LED