edit_explain_6.html 2.4 KB

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