html.h 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* clang-format off */
  2. static const char html_head_part1[] PROGMEM = R"=====(<html><head>
  3. <meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=no'/>
  4. <link rel='stylesheet' href='style.css'>
  5. <title>)=====";
  6. static const char html_head_part2[] PROGMEM = R"=====(</title>)=====";
  7. static const char html_stylesheet[] PROGMEM = R"=====(
  8. body { text-align:center; font-family:verdana,sans-serif; background:#ffffff; }div,fieldset,input,select { padding:3px; font-size:1em; }div#main { text-align:left; display:inline-block; min-width:340px;}div#head { text-align:left; font-weight:bold; font-size:1em; }div.config { font-weight:bold; font-size:0.9em; }hr { width: 100%; border: 1px solid black; }fieldset { background:#ffffff; }p { margin:0.5em 0; }input { width:100%; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; background:#ffffff; color:#000000; }input[type=checkbox],input[type=radio] { width:1em; margin-right:6px; vertical-align:-1px; }input[type=range] { width:99%; }select { width:100%; background:#ffffff; color:#000000; }textarea { resize:none; width:98%; height:318px; padding:5px; overflow:auto; background:#ffffff; color:#000000;}td { padding:2px; }button { border:0; border-radius:0.3rem; color:#ffffff; line-height:2.4rem; font-size:1.2rem; width:100%; -webkit-transition-duration:0.4s; transition-duration:0.4s; cursor:pointer; background:#1fa3ec; }button:hover { background:#0e70a4; }.bred { background:#d43535; }.bred:hover { background:#931f1f; }.bgrn { background:#47c266; }.bgrn:hover { background:#5aaf6f;}.bgrey { background:#909090; }.bgrey:hover { background:#606060;}a { color:#1fa3ec; text-decoration:none; }.p { float:left; text-align:left; font-weight:normal; }p.n { font-weight:normal; }.q { float:right; text-align:right; }.r { border-radius:0.3em; padding:2px; margin:6px 2px; }.s{ display:inline-block; width:14em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }#wl{ line-height:1.5em; }
  9. )=====";
  10. static const char html_head_end[] PROGMEM = R"=====(</head>)====="; // html_head_part3
  11. static const char html_bodytag_jsinit[] PROGMEM = R"=====(
  12. <body onload='init()'>)=====";
  13. static const char html_bodytag[] PROGMEM = R"=====(
  14. <body>)=====";
  15. static const char html_body_pagehead_part1[] PROGMEM = R"=====(
  16. <div id='main'>
  17. <div id='head'>)====="; // html_body_pagehead_part1
  18. static const char html_body_pagehead_part2[] PROGMEM = R"=====(
  19. </div><hr>
  20. <div></div>)====="; // html_body_pagehead_part2
  21. static const char html_body_pagehead_confchangednote[] PROGMEM = R"=====(
  22. <h2 style='color:red'>CONFIG CHANGED. <br>PLEASE RESTART!</h2>
  23. <div></div>)====="; // html_body_pagehead_confchangednote
  24. static const char html_confsaved_body[] PROGMEM = R"=====(
  25. <script>setTimeout(function(){window.location.href = 'conf';}, 2500);</script>
  26. <div>Configuration saved.</div>
  27. <table style='width:100%'><tr><td style='width:50%'><form action='conf' method='get'><button class='bgrey'>Config</button></form></td>
  28. <td><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></td></tr></table>
  29. )====="; // html_confsaved_body
  30. static const char html_confsavedrestart_body[] PROGMEM = R"=====(
  31. <script>setTimeout(function(){window.location.href = 'conf';}, 10000);</script>
  32. <div>Configuration saved. Restarting...</div>
  33. <table style='width:100%'><tr><td style='width:50%'><form action='conf' method='get'><button class='bgrey'>Config</button></form></td>
  34. <td><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></td></tr></table>
  35. )====="; // html_confsavedreboot_body
  36. static const char html_restarting_body[] PROGMEM = R"=====(
  37. <script>setTimeout(function(){window.location.href = '.';}, 10000);</script>
  38. <div>Restarting...</div>
  39. <p><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></p>
  40. )====="; // html_restarting_body
  41. static const char html_clearconf_body[] PROGMEM = R"=====(
  42. <script>setTimeout(function(){window.location.href = '.';}, 9000);</script>
  43. <div>Configuration cleared. Restarting...</div>
  44. <p><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></p>
  45. )====="; // html_clearconf_body
  46. static const char html_footer1[] PROGMEM = R"=====(
  47. <div style='text-align:right;font-size:0.7em;color:#AAA;'><hr/>)=====";
  48. static const char html_footer2[] PROGMEM = R"=====(</div>
  49. </div></body></html>
  50. )=====";