reboot_page.html 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="en" xml:lang="en">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>Reboot</title>
  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. <script type="text/javascript">var domainname = getDomainname();</script>
  19. </head>
  20. <body style="font-family: arial; padding: 0px 10px;">
  21. <h3>Do you really want to reboot now?</h3>
  22. <table class="fixed" border="0">
  23. <tr>
  24. <td>
  25. <button class="button" id="reboot" type="button" onclick="doReboot()">Reboot</button>
  26. </td>
  27. </tr>
  28. </table>
  29. <script type="text/javascript">
  30. function doReboot() {
  31. var stringota = domainname + "/reboot";
  32. window.location = stringota;
  33. window.location.href = stringota;
  34. window.location.assign(stringota);
  35. window.location.replace(stringota);
  36. }
  37. </script>
  38. </body>
  39. </html>