firmware wip - add emojis to menu

This commit is contained in:
Marcus 2024-05-03 02:01:03 +02:00
parent 1ac187e0b6
commit 7507145222

View file

@ -293,11 +293,11 @@ const char HTMLfooter[] PROGMEM = R"EOF(
const char HTMLsuccess[] PROGMEM = R"EOF(
<div class='infomsg'>Successfully saved!</div>
<div class='infomsg'>&#x2705; Successfully saved!</div>
)EOF";
const char HTMLneedRestart[] PROGMEM = R"EOF(
<div class='warnmsg'>Restart is required to apply new WiFi settings!
<div class='warnmsg'>&#10071; Restart is required to apply new WiFi settings!
<form action='/system/restart'>
<input type='submit' value='Restart now' />
</form>
@ -305,7 +305,7 @@ const char HTMLneedRestart[] PROGMEM = R"EOF(
)EOF";
const char HTMLhelp[] PROGMEM = R"EOF(
<h1>CanGrow help</h1>
<h2>&#x2753; Help</h2>
Here you will get some helpful help.
)EOF";
@ -1675,28 +1675,28 @@ String returnHTMLheader(String MenuEntry = "") {
if(MenuEntry == "growSettings") {
header += activeMenu;
}
header += ">Grow settings</a></li>\n";
header += ">&#128262; Grow settings</a></li>\n";
// third menu entry
header += "<li><a href='/systemSettings' ";
if(MenuEntry == "systemSettings") {
header += activeMenu;
}
header += ">System settings</a></li>\n";
header += ">&#9881; System settings</a></li>\n";
// fourth menu entry
header += "<li><a href='/wifiSettings' ";
if(MenuEntry == "wifiSettings") {
header += activeMenu;
}
header += ">WiFi settings</a></li>\n";
header += ">&#128225; WiFi settings</a></li>\n";
// fifth menu entry
header += "<li><a href='/help' ";
if(MenuEntry == "help") {
header += activeMenu;
}
header += ">Help</a></li>\n";
header += ">&#x2753; Help</a></li>\n";
// sixth menu entry
header += "<li><span class='MenuTime'>";
@ -1776,7 +1776,7 @@ void SysRestart() {
String body = returnHTMLheader();
// TODO only debug and development solution, remove this later
if( (webserver.hasArg("confirmed")) || (NeedRestart == true) ) {
body += "<h1>Restarting</h1>";
body += "<h1>&#10071; Restarting</h1>";
body += "<div class='infomsg'>After restart CanGrow will be connected to WiFi SSID<br><b>";
body += WIFIssid;
body += "</b><br>You get its IP-Address from the display or serial console.</div>";
@ -1786,7 +1786,7 @@ void SysRestart() {
delay(1000);
ESP.restart();
} else {
body += "<h1>Restart CanGrow</h1>";
body += "<h1>&#10071; Restart CanGrow</h1>";
body += "<div class='infomsg'>Do you want to restart CanGrow?";
body += "<br>Please confirm.";
body += "<form action='/system/restart'><input type='hidden' name='confirmed' value='true' /><input type='submit' value='Confirm restart' /></form>";
@ -1805,7 +1805,7 @@ void SysWipe() {
webserver.send(200, "text/html", body);
wipeEEPROM();
} else {
body += "<h1>Wipeing EEPROM</h1>";
body += "<h1>&#10071; &#10071; Wipeing EEPROM</h1>";
body += "<div class='warnmsg'>All settings will be removed!!<br>";
body += "<br>Please confirm wiping the EEPROM";
body += "<form action='/system/wipe'><input type='hidden' name='confirmed' value='true' /><input type='submit' value='Confirm wiping' /></form>";
@ -1817,7 +1817,7 @@ void SysWipe() {
void Sys404() {
String body = returnHTMLheader();
body += "<div class='warnmsg'><h1>404 - not found</h1></div>";
body += "<div class='warnmsg'><h1>&#10071; &#65039; 404 - not found</h1></div>";
body += FPSTR(HTMLfooter);
webserver.send(404, "text/html", body);
}
@ -2000,7 +2000,7 @@ void WEBgrowSettings() {
GrowStart = timeClient.getEpochTime();
}
body += "<h2>Grow Settings</h2>";
body += "<h2>&#128262; Grow settings</h2>";
if(webserver.hasArg("success")) {
body += FPSTR(HTMLsuccess);
}
@ -2096,7 +2096,7 @@ void WEBsystemSettings() {
body += "</p>";
}
body += "<h2>System settings</h2>";
body += "<h2>&#9881; System settings</h2>";
if(webserver.hasArg("success")) {
body += FPSTR(HTMLsuccess);
}
@ -2187,7 +2187,7 @@ void WEBwifiSettings() {
body += "<br>";
body += "</p>";
}
body += "<h2>WiFi config</h2>\n";
body += "<h2>&#128225; WiFi settings</h2>\n";
if(webserver.hasArg("success")) {
body += FPSTR(HTMLsuccess);