8b0a1ae362
Uses the sysparam store to save the wifi configuration. Adds a basic http server for configuration.
30 lines
1 KiB
HTML
30 lines
1 KiB
HTML
"<!DOCTYPE html><html lang=\"en\">"
|
|
"<head>"
|
|
"<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\">"
|
|
"<script src=\"/script.js\"></script>"
|
|
"<title>",
|
|
"</title>"
|
|
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">"
|
|
"</head>"
|
|
"<body>"
|
|
"<ul class=\"topnav\" id=\"myTopnav\">"
|
|
"<li><a href=\"/\">Home</a></li>"
|
|
"<li class=\"active\"><a href=\"/wificfg/\">WiFi Config</a></li>"
|
|
"<li><a href=\"/wificfg/sta.html\">WiFi Station</a></li>"
|
|
"<li><a href=\"/wificfg/ap.html\">WiFi Access Point</a></li>"
|
|
"<li class=\"icon\">"
|
|
"<a href=\"javascript:void(0);\" onclick=\"myFunction()\">☰</a>"
|
|
"</li>"
|
|
"</ul>"
|
|
"<form action=\"/challenge.html\" method=\"post\">"
|
|
"<fieldset>"
|
|
"<legend>Unlock the configuration interface</legend>"
|
|
"<dl class=\"dlh\">"
|
|
"<dt><label for=\"pw\">Password</label></dt>"
|
|
"<dd><input id=\"pw\" type=\"text\" maxlength=\"32\" name=\"cfg_password\" "
|
|
"placeholder=\"unlock-password\" value=\"\"></dd>"
|
|
"</dl>"
|
|
"<center><input type=\"submit\" value=\"Unlock\"></center>"
|
|
"</fieldset>"
|
|
"</form>"
|
|
"</body></html>"
|