@@ -47,14 +47,16 @@ void sendPage(EthernetClient &client, byte reqPage) {
4747 chunked.print (F (" <!DOCTYPE html>"
4848 " <html>"
4949 " <head>"
50- " <meta" ));
50+ " <meta charset=utf-8>"
51+ " <meta name=viewport content='width=device-width" ));
5152 if (reqPage == PAGE_WAIT) { // redirect to new IP and web port
52- chunked.print (F (" http-equiv=refresh content=5;url=http://" ));
53+ chunked.print (F (" '>"
54+ " <meta http-equiv=refresh content='5; url=http://" ));
5355 chunked.print (IPAddress (data.config .ip ));
5456 chunked.print (F (" :" ));
5557 chunked.print (data.config .webPort );
5658 }
57- chunked.print (F (" >"
59+ chunked.print (F (" ' >"
5860 " <title>Altherma UDP Controller</title>"
5961 " <style>"
6062 /*
@@ -66,10 +68,9 @@ void sendPage(EthernetClient &client, byte reqPage) {
6668 CSS Classes
6769 w - wrapper (includes m + c)
6870 m - navigation menu (left)
69- c - wrapper for the content of a page (incl. smaller header)
70- d - content of the page
71- q - row inside a content (top aligned)
72- r - row inside a content (center-aligned)
71+ c - wrapper for the content of a page (incl. smaller header and main)
72+ q - row inside a content (default: top-aligned)
73+ r - row inside a content (adds: center-aligned)
7374 i - short input (byte or IP address octet)
7475 n - input type=number
7576 s - select input with numbers
@@ -82,10 +83,10 @@ void sendPage(EthernetClient &client, byte reqPage) {
8283 " body,.w,.c,.q{display:flex}"
8384 " body,.c{flex-flow:column}"
8485 " .w{flex-grow:1;min-height:0}"
85- " .m{flex:0 0 20vw;padding:1px }"
86+ " .m{flex:0 0 20vw}"
8687 " .c{flex:1}"
87- " .d {overflow:auto;padding:15px}"
88- " .q{padding:1px}"
88+ " .m,main {overflow:auto;padding:15px}"
89+ " .m,. q{padding:1px}"
8990 " .r{align-items:center}"
9091 " h1,h4{padding:10px}"
9192 " h1,.m,h4{background:#0067AC;margin:1px}"
@@ -136,7 +137,7 @@ void sendPage(EthernetClient &client, byte reqPage) {
136137 " <h4>" ));
137138 stringPageName (chunked, reqPage);
138139 chunked.print (F (" </h4>"
139- " <div class=d >"
140+ " <main >"
140141 " <form method=post>" ));
141142
142143 // PLACE FUNCTIONS PROVIDING CONTENT HERE
@@ -172,7 +173,7 @@ void sendPage(EthernetClient &client, byte reqPage) {
172173 chunked.print (F (" <p><div class=r><label><input type=submit value='Save & Apply'></label><input type=reset value=Cancel></div>" ));
173174 }
174175 chunked.print (F (" </form>"
175- " </div >" ));
176+ " </main >" ));
176177 tagDivClose (chunked); // close tags <div class=c> <div class=w>
177178 chunked.end (); // closing tags not required </body></html>
178179}
@@ -507,7 +508,7 @@ void contentWait(ChunkedPrint &chunked) {
507508/* *************************************************************************/
508509void tagRowPacket (ChunkedPrint &chunked, const byte packetType) {
509510 if (getPacketStatus (packetType, PACKET_SEEN) == true ) {
510- chunked.print (F (" <div class=\" r q\" >"
511+ chunked.print (F (" <div class=' r q' >"
511512 " <label>Type 0x" ));
512513 chunked.print (hex (packetType));
513514 chunked.print (F (" :</label>"
@@ -664,9 +665,9 @@ void tagLabelDiv(ChunkedPrint &chunked, const __FlashStringHelper *label) {
664665 tagLabelDiv (chunked, label, false );
665666}
666667void tagLabelDiv (ChunkedPrint &chunked, const __FlashStringHelper *label, bool top) {
667- chunked.print (F (" <div class=\" q" ));
668+ chunked.print (F (" <div class=' q" ));
668669 if (!top) chunked.print (F (" r" ));
669- chunked.print (F (" \" ><label> " ));
670+ chunked.print (F (" ' ><label> " ));
670671 if (label) {
671672 chunked.print (label);
672673 chunked.print (F (" :" ));
0 commit comments