html.ino 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. static const char html_head_part1[] PROGMEM = R"=====(<html><head>
  2. <meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=no'/>
  3. <link rel='stylesheet' href='style.css'>
  4. <title>)=====";
  5. static const char html_head_part2[] PROGMEM = R"=====(</title>)=====";
  6. static const char html_stylesheet[] PROGMEM = R"=====(
  7. 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; }.q { float:right; text-align:right; }.r { border-radius:0.3em; padding:2px; margin:6px 2px; }
  8. )=====";
  9. static const char html_head_end[] PROGMEM = R"=====(</head>)====="; // html_head_part3
  10. static const char html_bodytag_jsinit[] PROGMEM = R"=====(
  11. <body onload='init()'>)=====";
  12. static const char html_bodytag[] PROGMEM = R"=====(
  13. <body>)=====";
  14. static const char html_body_pagehead_part1[] PROGMEM = R"=====(
  15. <div id='main'>
  16. <div id='head'>)====="; // html_body_pagehead_part1
  17. static const char html_body_pagehead_part2[] PROGMEM = R"=====(
  18. </div><hr>
  19. <div></div>)====="; // html_body_pagehead_part2
  20. static const char html_confsaved_body[] PROGMEM = R"=====(
  21. <script>setTimeout(function(){window.location.href = '.';}, 7000);</script>
  22. <div>Configuration saved. Restarting...</div>
  23. <p><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></p>
  24. )====="; // html_confsaved_body
  25. static const char html_restarting_body[] PROGMEM = R"=====(
  26. <script>setTimeout(function(){window.location.href = '.';}, 7000);</script>
  27. <div>Restarting...</div>
  28. <p><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></p>
  29. )====="; // html_restarting_body
  30. static const char html_clearconf_body[] PROGMEM = R"=====(
  31. <script>setTimeout(function(){window.location.href = '.';}, 7000);</script>
  32. <div>Configuration cleared. Restarting...</div>
  33. <p><form action='.' method='get'><button class='bgrey'>Main Menu</button></form></p>
  34. )====="; // html_clearconf_body
  35. static const char html_footer1[] PROGMEM = R"=====(
  36. <div style='text-align:right;font-size:0.7em;color:#AAA;'><hr/>)=====";
  37. static const char html_footer2[] PROGMEM = R"=====(</div>
  38. </div></body></html>
  39. )=====";