404.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <title>404</title>
  8. <style>
  9. body {
  10. background-color: #444;
  11. font-size: 14px;
  12. }
  13. h3 {
  14. font-size: 60px;
  15. font-size: 3vw;
  16. color: #eee;
  17. text-align: center;
  18. padding-top: 30px;
  19. font-weight: normal;
  20. }
  21. div {
  22. font-size: 30px;
  23. font-size: 2vw;
  24. color: #eee;
  25. text-align: center;
  26. padding-top: 30px;
  27. font-weight: normal;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <h1>404,您请求的文件不存在!</h1>
  33. <div id="text"></div>
  34. </body>
  35. <script type="text/javascript">
  36. window.onload = function () {
  37. redirect();
  38. }
  39. var i = 0;
  40. function redirect() {
  41. document.getElementById("text").innerHTML = (5 - i + " 秒后跳转回<a href=\"https://stevenapis.xyz\">主页</a>");
  42. i++;
  43. if (i > 5) {
  44. window.location.href = "https://stevenapis.xyz/";
  45. }
  46. setTimeout(redirect, 1000);
  47. }
  48. </script>
  49. </html>