@ -41,47 +41,48 @@ String delCredential(PageArgument&);
* The number of the entry to be deleted is passed to the function in the
* The number of the entry to be deleted is passed to the function in the
* POST method .
* POST method .
*/
*/
static const char html [ ] PROGMEM = {
static const char PROGMEM html [ ] = R " *lit(
" <!DOCTYPE html> "
< ! DOCTYPE html >
" <html> "
< html >
" <head> "
< head >
" <meta charset= \" UTF-8 \" name= \" viewport \" content= \" width=device-width, initial-scale=1 \" > "
< meta charset = " UTF-8 " name = " viewport " content = " width=device-width, initial-scale=1 " >
" <style> "
< style >
" html { "
html {
" font-family:Helvetica,Arial,sans-serif; "
font - family : Helvetica , Arial , sans - serif ;
" -ms-text-size-adjust:100%; "
- ms - text - size - adjust : 100 % ;
" -webkit-text-size-adjust:100%; "
- webkit - text - size - adjust : 100 % ;
" } "
}
" a:link, a:visited { "
. menu > a : link {
" background-color: #2f4f4f; "
position : absolute ;
" border-radius: 4px; "
display : inline - block ;
" color: white; "
right : 12 px ;
" display: inline-block; "
padding : 0 6 px ;
" padding: 6px 12px; "
text - decoration : none ;
" text-align: center; "
}
" text-decoration: none; "
< / style >
" } "
< / head >
" a:hover, a:active { "
< body >
" background-color: #132020; "
< div class = " menu " >{{AUTOCONNECT_MENU}}</div>
" } "
< form action = " /del " method = " POST " >
" </style> "
< ol >
" </head> "
{ { SSID } }
" <body> "
< / ol >
" <form action= \" /del \" method= \" POST \" > "
< p > Enter deleting entry : < / p >
" <ol> "
< input type = " number " min = " 1 " name = " num " >
" {{SSID}} "
< input type = " submit " >
" </ol> "
< / form >
" <p>Enter deleting entry:</p> "
< / body >
" <input type= \" number \" min= \" 1 \" name= \" num \" > "
< / html >
" <input type= \" submit \" > "
) * lit " ;
" </form> "
" <p><a href= \" " AUTOCONNECT_URI " \" >Menu</a></p> "
static const char PROGMEM autoconnectMenu [ ] = { AUTOCONNECT_LINK ( BAR_24 ) } ;
" </body> "
" </html> "
} ;
// URL path as '/'
// URL path as '/'
PageElement elmList ( html , { { " SSID " , viewCredential } } ) ;
PageElement elmList ( html ,
{ { " SSID " , viewCredential } ,
{ " AUTOCONNECT_MENU " , [ ] ( PageArgument & args ) {
return String ( FPSTR ( autoconnectMenu ) ) ; } }
} ) ;
PageBuilder rootPage ( " / " , { elmList } ) ;
PageBuilder rootPage ( " / " , { elmList } ) ;
// URL path as '/del'
// URL path as '/del'