reboot_page.html 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="icon" href="favicon.ico" type="image/x-icon">
  5. <title>Reboot</title>
  6. <meta charset="utf-8">
  7. <style>
  8. h1 {font-size: 2em;}
  9. h2 {font-size: 1.5em;}
  10. h3 {font-size: 1.2em;}
  11. p {font-size: 1em;}
  12. .button {
  13. padding: 10px 20px;
  14. width: 211px;
  15. font-size: 16px;
  16. }
  17. </style>
  18. </head>
  19. <body style="font-family: arial; padding: 0px 10px;">
  20. <h3>Do you really want to reboot your ESP32 now?</h3>
  21. <table class="fixed" border="0">
  22. <tr>
  23. <td>
  24. <button class="button" id="reboot" type="button" onclick="doReboot()">Yes, please reboot</button>
  25. </td>
  26. </tr>
  27. </table>
  28. <script>
  29. function doReboot() {
  30. // if (confirm("Are you sure you want to reboot the ESP32?")) {
  31. var stringota = "/reboot";
  32. window.location = stringota;
  33. window.location.href = stringota;
  34. window.location.assign(stringota);
  35. window.location.replace(stringota);
  36. // }
  37. }
  38. </script>
  39. </body>
  40. </html>