reboot_page.html 844 B

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