V2.22 250702 KalenderWochen Fehler -> neue Funktion

V2.23 251209 NTP überarbeitet; send_P umgebaut
This commit is contained in:
2025-12-12 15:58:38 +01:00
parent e670ec0e13
commit ccd9d05e6b
2 changed files with 46 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
const char html_page_index[] PROGMEM = R"rawliteral(
static const char *html_page_index PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<head>
<title>N-Tools.de Uhr</title>
@@ -140,9 +140,6 @@ const char html_page_index[] PROGMEM = R"rawliteral(
text-decoration: none;
text-transform: uppercase;
padding: 0.25rem 0.5rem;
@media(min-width: 600px) {
margin: 0 1em 2em;
}
&:hover { text-decoration: none; }
@@ -394,7 +391,8 @@ const char html_page_index[] PROGMEM = R"rawliteral(
document.getElementById('actDate').style.color = colorString;
document.getElementById('showWhat').value = parseInt(data[4]);
switch(data[5]){
showTimeFromUnix(data[5],'sync');
switch(data[6]){
case 0:
document.getElementById('sync').innerHTML = " keiner";
break;
@@ -407,8 +405,7 @@ const char html_page_index[] PROGMEM = R"rawliteral(
case 3:
document.getElementById('sync').innerHTML += " (manuel)";
break;
}
showTimeFromUnix(data[6],'sync');
}
document.getElementById('brigtness').innerHTML = (data[7]*100);
document.getElementById("rtcactive").checked = (data[8] == 1);