edit_explain_6.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html style="width: fit-content">
  3. <head>
  4. <link rel="icon" href="favicon.ico" type="image/x-icon">
  5. <title>jomjol - AI on the edge</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <style>
  9. .h_iframe iframe {width:995px;height:605px;}
  10. .h_iframe {width:995px;height:605px;}
  11. h1 {font-size: 2em; margin-block-end: 0.3em;}
  12. h2 {font-size: 1.5em;margin-block-start: 0.3em;}
  13. h3 {font-size: 1.2em;}
  14. p {font-size: 1em;}
  15. .button {
  16. padding: 5px 20px;
  17. width: 211px;
  18. font-size: 16px;
  19. }
  20. </style>
  21. </head>
  22. <body style="font-family: arial">
  23. <h4>Finished!</h4>
  24. <p>
  25. Now you are finished with the setup and ready to reboot to the normal mode.
  26. <br>
  27. Once you have pushed below button, the setup modus will be left and the digitizer start to normal operation mode.
  28. <br>
  29. After a view seconds you can reload this page. It will take two to four minutes, until you get the first reading.
  30. <br>
  31. All settings can be changed as well in the configuration menue in normal operation mode.
  32. </p>
  33. <p>
  34. <button class="button" onclick="reboot()">Leave Setup Modus and Reboot to Normal</button>
  35. </p>
  36. <script type="text/javascript" src="./gethost.js"></script>
  37. <script type="text/javascript" src="./readconfigparam.js"></script>
  38. <script type="text/javascript" src="./readconfigcommon.js"></script>
  39. <script type="text/javascript">
  40. var canvas = document.getElementById('canvas'),
  41. basepath = "http://192.168.178.22";
  42. aktstatu = 0;
  43. function reboot() {
  44. if (confirm("Do you want to leave the configuration mode and restart the ESP32?\n\nPlease reload the page in about 30s.")) {
  45. basepath = getbasepath();
  46. if (!loadConfig(basepath)) {
  47. alert("Setup Modus could not be deactivated!\Please retry.");
  48. return;
  49. }
  50. ParseConfig();
  51. param = getConfigParameters();
  52. param["System"]["SetupMode"]["enabled"] = true;
  53. param["System"]["SetupMode"]["value1"] = "false";
  54. WriteConfigININew();
  55. SaveConfigToServer(basepath);
  56. var stringota = "/reboot";
  57. window.location = stringota;
  58. window.location.href = stringota;
  59. window.location.assign(stringota);
  60. window.location.replace(stringota);
  61. }
  62. }
  63. </script>
  64. </body>
  65. </html>