error.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>404</title>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
  13. <style>
  14. .error .clip .shadow {height:180px;}
  15. .error .clip:nth-of-type(2) .shadow {width:130px;}
  16. .error .clip:nth-of-type(1) .shadow,.error .clip:nth-of-type(3) .shadow {width:250px;}
  17. .error .digit {width:150px;height:150px;line-height:150px;font-size:120px;font-weight:bold;}
  18. .error h2 {font-size:32px;}
  19. .error .msg {top:-190px;left:30%;width:80px;height:80px;line-height:80px;font-size:32px;}
  20. .error span.triangle {top:70%;right:0%;border-left:20px solid #535353;border-top:15px solid transparent;border-bottom:15px solid transparent;}
  21. .error .container-error-404 {top: 50%;margin-top: 250px;position:relative;height:250px;padding-top:40px;}
  22. .error .container-error-404 .clip {display:inline-block;transform:skew(-45deg);}
  23. .error .clip .shadow {overflow:hidden;}
  24. .error .clip:nth-of-type(2) .shadow {overflow:hidden;position:relative;box-shadow:inset 20px 0px 20px -15px rgba(150,150,150,0.8),20px 0px 20px -15px rgba(150,150,150,0.8);}
  25. .error .clip:nth-of-type(3) .shadow:after,.error .clip:nth-of-type(1) .shadow:after {content:"";position:absolute;right:-8px;bottom:0px;z-index:9999;height:100%;width:10px;background:linear-gradient(90deg,transparent,rgba(173,173,173,0.8),transparent);border-radius:50%;}
  26. .error .clip:nth-of-type(3) .shadow:after {left:-8px;}
  27. .error .digit {position:relative;top:8%;color:white;background:#1aa094;border-radius:50%;display:inline-block;transform:skew(45deg);}
  28. .error .clip:nth-of-type(2) .digit {left:-10%;}
  29. .error .clip:nth-of-type(1) .digit {right:-20%;}
  30. .error .clip:nth-of-type(3) .digit {left:-20%;}
  31. .error h2 {font-size:24px;color:#A2A2A2;font-weight:bold;padding-bottom:20px;}
  32. .error .tohome {font-size:16px;color:#07B3F9;}
  33. .error .msg {position:relative;z-index:9999;display:block;background:#535353;color:#A2A2A2;border-radius:50%;font-style:italic;}
  34. .error .triangle {position:absolute;z-index:999;transform:rotate(45deg);content:"";width:0;height:0;}
  35. @media(max-width:767px) {.error .clip .shadow {height:100px;}
  36. .error .clip:nth-of-type(2) .shadow {width:80px;}
  37. .error .clip:nth-of-type(1) .shadow,.error .clip:nth-of-type(3) .shadow {width:100px;}
  38. .error .digit {width:80px;height:80px;line-height:80px;font-size:52px;}
  39. .error h2 {font-size:18px;}
  40. .error .msg {top:-110px;left:15%;width:40px;height:40px;line-height:40px;font-size:18px;}
  41. .error span.triangle {top:70%;right:-3%;border-left:10px solid #535353;border-top:8px solid transparent;border-bottom:8px solid transparent;}
  42. .error .container-error-404 {height:150px;}
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <div class="error">
  48. <div class="container-floud">
  49. <div style="text-align: center">
  50. <div class="container-error-404">
  51. <div class="clip">
  52. <div class="shadow">
  53. <span class="digit thirdDigit"></span>
  54. </div>
  55. </div>
  56. <div class="clip">
  57. <div class="shadow">
  58. <span class="digit secondDigit"></span>
  59. </div>
  60. </div>
  61. <div class="clip">
  62. <div class="shadow">
  63. <span class="digit firstDigit"></span>
  64. </div>
  65. </div>
  66. <div class="msg">OH!
  67. <span class="triangle"></span>
  68. </div>
  69. </div>
  70. <h2 class="h1">很抱歉,你访问的页面找不到了</h2>
  71. </div>
  72. </div>
  73. </div>
  74. <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
  75. <script>
  76. function randomNum() {
  77. return Math.floor(Math.random() * 9) + 1;
  78. }
  79. var loop1, loop2, loop3, time = 30, i = 0, number;
  80. loop3 = setInterval(function () {
  81. if (i > 40) {
  82. clearInterval(loop3);
  83. document.querySelector('.thirdDigit').textContent = 4;
  84. } else {
  85. document.querySelector('.thirdDigit').textContent = randomNum();
  86. i++;
  87. }
  88. }, time);
  89. loop2 = setInterval(function () {
  90. if (i > 80) {
  91. clearInterval(loop2);
  92. document.querySelector('.secondDigit').textContent = 0;
  93. } else {
  94. document.querySelector('.secondDigit').textContent = randomNum();
  95. i++;
  96. }
  97. }, time);
  98. loop1 = setInterval(function () {
  99. if (i > 100) {
  100. clearInterval(loop1);
  101. document.querySelector('.firstDigit').textContent = 4;
  102. } else {
  103. document.querySelector('.firstDigit').textContent = randomNum();
  104. i++;
  105. }
  106. }, time);
  107. </script>
  108. </body>
  109. </html>