8b0a1ae362
Uses the sysparam store to save the wifi configuration. Adds a basic http server for configuration.
52 lines
2.3 KiB
HTML
52 lines
2.3 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>"
|
|
"<h1>WiFi Status</h1>"
|
|
"<dl class=\"dlh\">",
|
|
"</dl>"
|
|
"<br>"
|
|
"<form action=\"/wificfg/\" method=\"post\" onsubmit=\"return confirm('Are you sure you want to lock the configuration interface, and have you noted the password?');\">"
|
|
"<fieldset>"
|
|
"<legend>Lock the configuration interface</legend>"
|
|
"<p>These WiFi configuration pages can be disabled for security on a shared network. If a password is supplied then they can be unlocked. Warning: if no password is supplied then it will not be possible to unlock these pages via this interface.</p>"
|
|
"<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>"
|
|
"<input type=\"hidden\" name=\"cfg_enable\" value=\"0\">"
|
|
"<center><input type=\"submit\" value=\"Lock\"></center>"
|
|
"</fieldset>"
|
|
"</form>"
|
|
"<form action=\"/wificfg/restart.html\" method=\"post\" onsubmit=\"return confirm('Are you sure you want to restart the device?');\">"
|
|
"<fieldset>"
|
|
"<legend>Restart device</legend>"
|
|
"<p>A restart is necessary for some changes to take effect.</p>"
|
|
"<center><button>Restart</button></center>"
|
|
"</fieldset></form>"
|
|
"<form action=\"/wificfg/erase.html\" method=\"post\" onsubmit=\"return confirm('Are you sure you want to erase the configuration?');\">"
|
|
"<fieldset>"
|
|
"<legend>Erase configuration</legend>"
|
|
"<p>Erases the device configuration stored in the flash memory and restarts the device. "
|
|
"This might be useful to clear stored passwords and private configuration information."
|
|
"</p>"
|
|
"<center><button>Erase Configuration</button></center>"
|
|
"</fieldset>"
|
|
"</form>",
|
|
"</body></html>"
|