edit_explain_6.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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>Step 6: Setup Completed!</h4>
  25. <p>Congratulations, you completed the setup and are now ready to reboot to the normal mode!</p>
  26. <p>Once you have pushed the button below, the setup modus will be left and the digitizer will restart to normal operation mode.<br>
  27. The Web Interface will automatically reload. It will take some minutes until you get the first reading.
  28. </p>
  29. <p>
  30. <button class="button" onclick="reboot()">Leave Setup Modus and Reboot to Normal modus</button>
  31. </p>
  32. <script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
  33. <script type="text/javascript" src="readconfigparam.js?v=$COMMIT_HASH"></script>
  34. <script type="text/javascript" src="readconfigcommon.js?v=$COMMIT_HASH"></script>
  35. <script type="text/javascript">
  36. var canvas = document.getElementById('canvas'),
  37. domainname = getDomainname();
  38. aktstatu = 0;
  39. function reboot() {
  40. if (confirm("Do you want to leave the configuration mode and restart the ESP32?")) {
  41. domainname = getDomainname();
  42. if (!loadConfig(domainname)) {
  43. firework.launch('Setup Modus could not be deactivated! Please try again!', 'danger', 30000);
  44. return;
  45. }
  46. ParseConfig();
  47. param = getConfigParameters();
  48. param["System"]["SetupMode"]["enabled"] = true;
  49. param["System"]["SetupMode"]["value1"] = "false";
  50. WriteConfigININew();
  51. SaveConfigToServer(domainname);
  52. var stringota = "/reboot";
  53. window.location = stringota;
  54. window.location.href = stringota;
  55. window.location.assign(stringota);
  56. window.location.replace(stringota);
  57. }
  58. }
  59. </script>
  60. </body>
  61. </html>