edit_explain_6.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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" src="./readconfigcommon.js"></script>
  38. <script type="text/javascript">
  39. var canvas = document.getElementById('canvas'),
  40. basepath = "http://192.168.178.22";
  41. aktstatu = 0;
  42. function reboot() {
  43. if (confirm("Do you want to leave the configuration mode and restart the ESP32?\n\nPlease reload the page in about 30s.")) {
  44. basepath = getbasepath();
  45. if (!loadConfig(basepath)) {
  46. alert("Setup Modus could not be deactivated!\Please retry.");
  47. return;
  48. }
  49. ParseConfig();
  50. param = getConfigParameters();
  51. param["System"]["SetupMode"]["enabled"] = false;
  52. param["System"]["SetupMode"]["value1"] = "false";
  53. setConfigParameters(param);
  54. var textToSave = setConfigParameters(param);
  55. FileDeleteOnServer("/config/config.ini", basepath);
  56. FileSendContent(textToSave, "/config/config.ini", basepath);
  57. var stringota = "/reboot";
  58. window.location = stringota;
  59. window.location.href = stringota;
  60. window.location.assign(stringota);
  61. window.location.replace(stringota);
  62. }
  63. }
  64. </script>
  65. </body>
  66. </html>