center table with freezer data, set font size
This commit is contained in:
parent
604f3d9933
commit
85ebdf4108
@ -186,10 +186,10 @@ void handleWifiSetup(){
|
||||
}
|
||||
void handleRoot(){
|
||||
String ptr = header;
|
||||
ptr += "<a href=\"/setup\">Setup Wifi</a>";
|
||||
ptr +="<table style=\"width: 100%;\">\n<tr style=\"border-bottom: 5px solid #444444;\"><td>Name</td><td>Temp</td><td>Status</td></tr>\n";
|
||||
ptr +="<div class=\"col\">";
|
||||
ptr +="<table>\n<tr><td>Name</td><td>Temp</td><td>Status</td></tr>\n";
|
||||
for (int i = 0; i < (sizeof(truhen) / sizeof(truhen[0])); i++) {
|
||||
ptr +="<tr>\n<td>";
|
||||
ptr +="<tr style=\"padding: 10px;font-size: 1.8em;\" >\n<td>";
|
||||
ptr +=truhen[i].getName();
|
||||
ptr +="</td>\n<td>";
|
||||
ptr +=String(truhen[i].getCurTemp())+"℃";
|
||||
@ -208,7 +208,9 @@ void handleRoot(){
|
||||
}
|
||||
ptr += "</td>\n</tr>\n";
|
||||
}
|
||||
|
||||
ptr += "</table>\n";
|
||||
ptr += "</div>\n";
|
||||
ptr +="</body>\n";
|
||||
ptr +="</html>\n";
|
||||
server.send(200, "text/html", ptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user