reboot_page.html 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en" xml:lang="en">
  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: 5px 10px;
  13. width: 205px;
  14. font-size: 16px;
  15. }
  16. </style>
  17. <script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
  18. </head>
  19. <body style="font-family: arial; padding: 0px 10px;">
  20. <h3>Do you really want to reboot now?</h3>
  21. <table class="fixed" border="0">
  22. <tr>
  23. <td>
  24. <button class="button" id="reboot" type="button" onclick="doReboot()">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 = getDomainname() + "/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>