7 changed files with 809 additions and 408 deletions
-
6html/management.html
-
4html/management_EN.html
-
121src/HTMLaccesspoint.h
-
72src/HTMLaccesspoint_EN.h
-
22src/HTMLmanagement.h
-
978src/HTMLmanagement_EN.h
-
14src/main.cpp
@ -1,65 +1,64 @@ |
|||||
static const char accesspoint_HTML[] PROGMEM = "<!DOCTYPE html>\ |
static const char accesspoint_HTML[] PROGMEM = "<!DOCTYPE html>\ |
||||
<html>\ |
<html>\ |
||||
<head>\ |
|
||||
<title>WLAN-Einrichtung</title>\ |
|
||||
<style>\ |
|
||||
input {\ |
|
||||
width: 90%%;\ |
|
||||
height: 44px;\ |
|
||||
border-radius: 4px;\ |
|
||||
margin: 10px auto;\ |
|
||||
font-size: 15px;\ |
|
||||
background: #f1f1f1;\ |
|
||||
border: 0;\ |
|
||||
padding: 0 15px\ |
|
||||
}\ |
|
||||
input {\ |
|
||||
|
<head>\ |
||||
|
<title>WLAN-Einrichtung</title>\ |
||||
|
<style>\ |
||||
|
input {\ |
||||
|
width: 90%%;\ |
||||
|
height: 44px;\ |
||||
|
border-radius: 4px;\ |
||||
|
margin: 10px auto;\ |
||||
|
font-size: 15px;\ |
||||
|
background: #f1f1f1;\ |
||||
|
border: 0;\ |
||||
|
padding: 0 15px\ |
||||
|
}\ |
||||
|
input {\ |
||||
\ |
\ |
||||
}\ |
|
||||
body {\ |
|
||||
background: #007bff;\ |
|
||||
font-family: sans-serif;\ |
|
||||
font-size: 14px;\ |
|
||||
color: #777\ |
|
||||
}\ |
|
||||
.box {\ |
|
||||
background: #fff;\ |
|
||||
max-width: 258px;\ |
|
||||
margin: 75px auto;\ |
|
||||
padding: 30px;\ |
|
||||
border-radius: 5px;\ |
|
||||
text-align: center\ |
|
||||
}\ |
|
||||
.btn {\ |
|
||||
background: #3498db;\ |
|
||||
color: #fff;\ |
|
||||
cursor: pointer;\ |
|
||||
width: 90%%;\ |
|
||||
height: 44px;\ |
|
||||
border-radius: 4px;\ |
|
||||
margin: 10px auto;\ |
|
||||
font-size: 15px;\ |
|
||||
}\ |
|
||||
.rebootmsg {\ |
|
||||
display: none;\ |
|
||||
}\ |
|
||||
</style>\ |
|
||||
</head>\ |
|
||||
<body>\ |
|
||||
<form id=\"settings\" action=\"/init\" class=\"box\" method=\"POST\">\ |
|
||||
<h1>WiFi Configuration</h1>\ |
|
||||
<label for=\"ssid\">SSID:</label><br>\ |
|
||||
<input type=\"text\" id=\"ssid\" name=\"ssid\" placeholder=\"SSID\" required><br>\ |
|
||||
<label for=\"pwd\">Passwort:</label><br>\ |
|
||||
<input type=\"password\" id=\"pwd\" name=\"pwd\" autocomplete=\"off\" required><br>\ |
|
||||
<label for=\"hostname\">Tonuino-Name (Hostname):</label><br>\ |
|
||||
<input type=\"text\" id=\"hostname\" name=\"hostname\" placeholder=\"Tonuino\" required><br><br>\ |
|
||||
<input class=\"btn\" type=\"submit\" id=\"save-button\" value=\"Save\">\ |
|
||||
</form>\ |
|
||||
<form action=\"/restart\" class=\"box\">\ |
|
||||
<h1>Ready to go?</h1>\ |
|
||||
<input class=\"btn\" type=\"submit\" id=\"restart-button\" value=\"Reboot\">\ |
|
||||
</form>\ |
|
||||
\ |
|
||||
</body>\ |
|
||||
|
}\ |
||||
|
body {\ |
||||
|
background: #007bff;\ |
||||
|
font-family: sans-serif;\ |
||||
|
font-size: 14px;\ |
||||
|
color: #777\ |
||||
|
}\ |
||||
|
.box {\ |
||||
|
background: #fff;\ |
||||
|
max-width: 258px;\ |
||||
|
margin: 75px auto;\ |
||||
|
padding: 30px;\ |
||||
|
border-radius: 5px;\ |
||||
|
text-align: center\ |
||||
|
}\ |
||||
|
.btn {\ |
||||
|
background: #3498db;\ |
||||
|
color: #fff;\ |
||||
|
cursor: pointer;\ |
||||
|
width: 90%%;\ |
||||
|
height: 44px;\ |
||||
|
border-radius: 4px;\ |
||||
|
margin: 10px auto;\ |
||||
|
font-size: 15px;\ |
||||
|
}\ |
||||
|
.rebootmsg {\ |
||||
|
display: none;\ |
||||
|
}\ |
||||
|
</style>\ |
||||
|
</head>\ |
||||
|
<body>\ |
||||
|
<form id=\"settings\" action=\"/init\" class=\"box\" method=\"POST\">\ |
||||
|
<h1>WLAN-Einrichtung</h1>\ |
||||
|
<label for=\"ssid\">SSID:</label><br>\ |
||||
|
<input type=\"text\" id=\"ssid\" name=\"ssid\" placeholder=\"SSID\" required><br>\ |
||||
|
<label for=\"pwd\">Passwort:</label><br>\ |
||||
|
<input type=\"password\" id=\"pwd\" name=\"pwd\" autocomplete=\"off\" required><br>\ |
||||
|
<label for=\"hostname\">Tonuino-Name (Hostname):</label><br>\ |
||||
|
<input type=\"text\" id=\"hostname\" name=\"hostname\" placeholder=\"Tonuino\" required><br><br>\ |
||||
|
<input class=\"btn\" type=\"submit\" id=\"save-button\" value=\"Save\">\ |
||||
|
</form>\ |
||||
|
<form action=\"/restart\" class=\"box\">\ |
||||
|
<h1>Fertig?</h1>\ |
||||
|
<input class=\"btn\" type=\"submit\" id=\"restart-button\" value=\"Reboot\">\ |
||||
|
</form>\ |
||||
|
</body>\ |
||||
</html>"; |
</html>"; |
@ -1,24 +1,64 @@ |
|||||
static const char accesspoint_HTML[] PROGMEM = "<!DOCTYPE html>\ |
static const char accesspoint_HTML[] PROGMEM = "<!DOCTYPE html>\ |
||||
<html>\ |
<html>\ |
||||
<head>\ |
<head>\ |
||||
<title>Wifi-configuration</title>\ |
|
||||
|
<title>WiFi-configuration</title>\ |
||||
|
<style>\ |
||||
|
input {\ |
||||
|
width: 90%%;\ |
||||
|
height: 44px;\ |
||||
|
border-radius: 4px;\ |
||||
|
margin: 10px auto;\ |
||||
|
font-size: 15px;\ |
||||
|
background: #f1f1f1;\ |
||||
|
border: 0;\ |
||||
|
padding: 0 15px\ |
||||
|
}\ |
||||
|
input {\ |
||||
|
\ |
||||
|
}\ |
||||
|
body {\ |
||||
|
background: #007bff;\ |
||||
|
font-family: sans-serif;\ |
||||
|
font-size: 14px;\ |
||||
|
color: #777\ |
||||
|
}\ |
||||
|
.box {\ |
||||
|
background: #fff;\ |
||||
|
max-width: 258px;\ |
||||
|
margin: 75px auto;\ |
||||
|
padding: 30px;\ |
||||
|
border-radius: 5px;\ |
||||
|
text-align: center\ |
||||
|
}\ |
||||
|
.btn {\ |
||||
|
background: #3498db;\ |
||||
|
color: #fff;\ |
||||
|
cursor: pointer;\ |
||||
|
width: 90%%;\ |
||||
|
height: 44px;\ |
||||
|
border-radius: 4px;\ |
||||
|
margin: 10px auto;\ |
||||
|
font-size: 15px;\ |
||||
|
}\ |
||||
|
.rebootmsg {\ |
||||
|
display: none;\ |
||||
|
}\ |
||||
|
</style>\ |
||||
</head>\ |
</head>\ |
||||
<body>\ |
<body>\ |
||||
<form action=\"/init\" method=\"POST\">\ |
|
||||
<fieldset>\ |
|
||||
<legend>Basic wifi-setup</legend>\ |
|
||||
<label for=\"ssid\">SSID:</label><br>\ |
|
||||
<input type=\"text\" id=\"ssid\" name=\"ssid\" placeholder=\"SSID\" required><br>\ |
|
||||
<label for=\"pwd\">Password:</label><br>\ |
|
||||
<input type=\"password\" id=\"pwd\" name=\"pwd\" autocomplete=\"off\" required><br>\ |
|
||||
<label for=\"hostname\">Tonuino-name (hostname):</label><br>\ |
|
||||
<input type=\"text\" id=\"hostname\" name=\"hostname\" required><br><br>\ |
|
||||
<input type=\"submit\" value=\"Submit\">\ |
|
||||
</fieldset>\ |
|
||||
|
<form id=\"settings\" action=\"/init\" class=\"box\" method=\"POST\">\ |
||||
|
<h1>WiFi-configuration</h1>\ |
||||
|
<label for=\"ssid\">SSID:</label><br>\ |
||||
|
<input type=\"text\" id=\"ssid\" name=\"ssid\" placeholder=\"SSID\" required><br>\ |
||||
|
<label for=\"pwd\">Password:</label><br>\ |
||||
|
<input type=\"password\" id=\"pwd\" name=\"pwd\" autocomplete=\"off\" required><br>\ |
||||
|
<label for=\"hostname\">Tonuino's name (hostname):</label><br>\ |
||||
|
<input type=\"text\" id=\"hostname\" name=\"hostname\" placeholder=\"Tonuino\" required><br><br>\ |
||||
|
<input class=\"btn\" type=\"submit\" id=\"save-button\" value=\"Save\">\ |
||||
</form>\ |
</form>\ |
||||
<form action=\"/restart\">\ |
|
||||
<button type=\"submit\">Reboot</button>\ |
|
||||
|
<form action=\"/restart\" class=\"box\">\ |
||||
|
<h1>Ready to go?</h1>\ |
||||
|
<input class=\"btn\" type=\"submit\" id=\"restart-button\" value=\"Reboot\">\ |
||||
</form>\ |
</form>\ |
||||
</body>\ |
</body>\ |
||||
</html>\ |
|
||||
"; |
|
||||
|
</html>"; |
978
src/HTMLmanagement_EN.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue