reboot_page.html 775 B

123456789101112131415161718192021222324252627282930313233343536
  1. <html><head>
  2. <title>jomjol - AI on the edge</title>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <script type="text/javascript">
  6. //<![CDATA[
  7. //]]>
  8. </script>
  9. </head>
  10. <body style="font-family: arial">
  11. <h2>Do you really want to reboot your system now?</h2>
  12. <table class="fixed" border="0">
  13. <tr>
  14. <td>
  15. <button id="reboot" type="button" onclick="doReboot()">Yes, please reboot now</button>
  16. </td>
  17. </tr>
  18. </table>
  19. <script>
  20. function doReboot() {
  21. // if (confirm("Are you sure you want to reboot the ESP32?")) {
  22. var stringota = "/reboot";
  23. window.location = stringota;
  24. window.location.href = stringota;
  25. window.location.assign(stringota);
  26. window.location.replace(stringota);
  27. // }
  28. }
  29. </script>
  30. </body></html>