edit_explain_6.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html style="width: fit-content">
  3. <head>
  4. <link rel="icon" href="favicon.ico?v=$COMMIT_HASH" 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. <link href="firework.css?v=$COMMIT_HASH" rel="stylesheet">
  20. <script type="text/javascript" src="jquery-3.6.0.min.js?v=$COMMIT_HASH"></script>
  21. <script type="text/javascript" src="firework.js?v=$COMMIT_HASH"></script>
  22. </head>
  23. <body style="font-family: arial">
  24. <h4>Finished!</h4>
  25. <p>
  26. Now you are finished with the setup and ready to reboot to the normal mode.
  27. <br>
  28. Once you have pushed below button, the setup modus will be left and the digitizer will restart to normal operation mode.
  29. <br>
  30. The Web Interface will automatically reload. It will take two to four minutes, until you get the first reading.
  31. <br>
  32. All settings can be changed as well in the configuration menu in the Normal modus.
  33. </p>
  34. <p>
  35. <button class="button" onclick="reboot()">Leave Setup Modus and Reboot to Normal modus</button>
  36. </p>
  37. <script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
  38. <script type="text/javascript" src="readconfigparam.js?v=$COMMIT_HASH"></script>
  39. <script type="text/javascript" src="readconfigcommon.js?v=$COMMIT_HASH"></script>
  40. <script type="text/javascript">
  41. var canvas = document.getElementById('canvas'),
  42. domainname = getDomainname();
  43. aktstatu = 0;
  44. function reboot() {
  45. if (confirm("Do you want to leave the configuration mode and restart the ESP32?")) {
  46. domainname = getDomainname();
  47. if (!loadConfig(domainname)) {
  48. firework.launch('Setup Modus could not be deactivated! Please try again!', 'danger', 30000);
  49. return;
  50. }
  51. ParseConfig();
  52. param = getConfigParameters();
  53. param["System"]["SetupMode"]["enabled"] = true;
  54. param["System"]["SetupMode"]["value1"] = "false";
  55. WriteConfigININew();
  56. SaveConfigToServer(domainname);
  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>