reboot_page.html 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="icon" href="favicon.ico?v=$COMMIT_HASH" 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. <script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
  19. </head>
  20. <body style="font-family: arial; padding: 0px 10px;">
  21. <h3>Do you really want to reboot your ESP32 now?</h3>
  22. <table class="fixed" border="0">
  23. <tr>
  24. <td>
  25. <button class="button" id="reboot" type="button" onclick="doReboot()">Yes, please reboot</button>
  26. </td>
  27. </tr>
  28. </table>
  29. <script>
  30. function doReboot() {
  31. // if (confirm("Are you sure you want to reboot the ESP32?")) {
  32. var stringota = getDomainname() + "/reboot";
  33. window.location = stringota;
  34. window.location.href = stringota;
  35. window.location.assign(stringota);
  36. window.location.replace(stringota);
  37. // }
  38. }
  39. </script>
  40. </body>
  41. </html>