edit_explain_6.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html style="width: fit-content">
  3. <head>
  4. <title>jomjol - AI on the edge</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style>
  8. .h_iframe iframe {width:995px;height:605px;}
  9. .h_iframe {width:995px;height:605px;}
  10. h1 {font-size: 2em; margin-block-end: 0.3em;}
  11. h2 {font-size: 1.5em;margin-block-start: 0.3em;}
  12. h3 {font-size: 1.2em;}
  13. p {font-size: 1em;}
  14. .button {
  15. padding: 5px 20px;
  16. width: 211px;
  17. font-size: 16px;
  18. }
  19. </style>
  20. </head>
  21. <body style="font-family: arial">
  22. <h4>Finished!</h4>
  23. <p>
  24. Now you are finished with the setup and ready to reboot to the normal mode.
  25. <br>
  26. Once you have pushed below button, the setup modus will be left and the digitizer start to normal operation mode.
  27. <br>
  28. After a view seconds you can reload this page again and will go to normal operation mode.
  29. <br>
  30. All settings can be changed later on as well in the configuration menue.
  31. </p>
  32. <p>
  33. <button class="button" onclick="reboot()">Leave Setup Modus and Reboot to Normal</button>
  34. </p>
  35. <script type="text/javascript" src="./gethost.js"></script>
  36. <script type="text/javascript" src="./readconfigparam.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"] = false;
  51. param["System"]["SetupMode"]["value1"] = "false";
  52. setConfigParameters(param);
  53. var textToSave = setConfigParameters(param);
  54. FileDeleteOnServer("/config/config.ini", basepath);
  55. FileSendContent(textToSave, "/config/config.ini", 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>