ServiceUnavailable.cshtml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. @inject IWebHostEnvironment HostEnvironment
  2. @using System.IO
  3. @using Masuit.Tools
  4. @using Masuit.Tools.Win32
  5. @using Microsoft.AspNetCore.Hosting
  6. @using Microsoft.Net.Http.Headers
  7. @{
  8. string[] colors = { "success", "info", "primary", "warning", "danger" };
  9. Layout = null;
  10. }
  11. <!DOCTYPE html>
  12. <html>
  13. <head>
  14. <title>503-服务器开小差啦!</title>
  15. <style type="text/css">
  16. #main-scrollbar {
  17. position: fixed;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. left: 0;
  22. }
  23. .link, .texts {
  24. margin: 0 auto 15px;
  25. color: #505050;
  26. }
  27. .texts {
  28. line-height: 2;
  29. }
  30. .texts dd {
  31. margin: 0;
  32. padding: 0 0 0 15px;
  33. }
  34. .texts ul {
  35. margin: 0;
  36. padding: 0;
  37. }
  38. .portal {
  39. color: #505050;
  40. text-align: center;
  41. white-space: nowrap;
  42. word-spacing: 0.45em;
  43. }
  44. .portal a:link, .portal a:visited {
  45. color: #505050;
  46. word-spacing: 0;
  47. }
  48. .portal a:hover, .portal a:active {
  49. color: #007ab7;
  50. }
  51. .STYLE1 {
  52. font-family: Arial, Helvetica, sans-serif;
  53. font-size: 65px;
  54. }
  55. body {
  56. background-image: url(/images/bg2.jpg);
  57. background-size: cover;
  58. background-position: 50% 0;
  59. margin: 0;
  60. }
  61. body:before {
  62. content: '';
  63. display: inline-block;
  64. vertical-align: middle;
  65. }
  66. </style>
  67. <meta property="qc:admins" content="153016004160513163145" />
  68. <meta charset="utf-8">
  69. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  70. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  71. <link href="https://cdn.staticfile.org/normalize/8.0.1/normalize.min.css" rel="stylesheet">
  72. <link href="https://cdn.staticfile.org/animate.css/3.7.0/animate.min.css" rel="stylesheet">
  73. <link href="https://cdn.staticfile.org/smooth-scrollbar/7.4.1/smooth-scrollbar.css" rel="stylesheet">
  74. <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
  75. <script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js"></script>
  76. <script src="https://cdn.staticfile.org/jquery.ripples/0.5.3/jquery.ripples.min.js"></script>
  77. <script src="https://cdn.staticfile.org/smooth-scrollbar/7.4.1/smooth-scrollbar.js"></script>
  78. </head>
  79. <body id="main-scrollbar" data-scrollbar>
  80. <div class="container">
  81. <header id="header" class="page-header text-center">
  82. <h1><a href="/">Oops!</a></h1>
  83. </header>
  84. <div id="container">
  85. @{
  86. Random r = new Random();
  87. string imgPath = $"/Assets/images/503/503{r.StrictNext(Directory.GetFiles(HostEnvironment.WebRootPath + "/Assets/images/503").Length) + 1}.jpg";
  88. }
  89. <img class="img img-responsive img-thumbnail" width="100%" src="@imgPath" alt="@ViewBag.Keywords" />
  90. <h3 class="margintop20">
  91. <em>
  92. <span class="STYLE1">503 Service Unavailable&nbsp;</span>
  93. </em>:所访问的页面出了点小问题,可能您输错了网址!
  94. </h3>
  95. <a class="btn btn-info btn-lg" href="/"><i class="icon-reply">返回首页</i></a>
  96. <dl class="texts">
  97. <dt class="h2">正在联系火星总部网络中心.请返回等待信息......</dt>
  98. <dd>
  99. <ul>
  100. <li class="h2">不要返回吗?</li>
  101. <li class="h3">确定不要返回吗?</li>
  102. <li class="h4">真的真的确定不要返回吗?</li>
  103. <li class="h5">好吧.还是随便你要不要真的确定返回吧</li>
  104. <li class="h6">要是真的不愿意返回就玩个游戏吧,机会很难得哦——</li>
  105. <li>将猫困在一个深色圆点围成的圈子里面就算成功了!</li>
  106. </ul>
  107. </dd>
  108. <div class="games">
  109. <embed type="application/x-shockwave-flash" width="600" height="400" src="~/Assets/shenjingmao.swf" wmode="transparent" quality="high" scale="noborder" flashvars="width=600&amp;height=400" allowscriptaccess="sameDomain"></embed>
  110. </div>
  111. </dl>
  112. </div>
  113. </div>
  114. <div class="layer animated fadeIn">
  115. <div class="loadEffect">
  116. @for (int i = 0; i < 7; i++)
  117. {
  118. <div>
  119. <span class="bg-@colors[new Random().StrictNext() % 5]"></span>
  120. </div>
  121. }
  122. </div>
  123. </div>
  124. </body>
  125. </html>
  126. <script>
  127. $(document).ready(function () {
  128. Scrollbar.initAll({
  129. speed: 3,
  130. overscrollEffect: 'bounce',
  131. overscrollEffectColor: '#d2527f'
  132. });
  133. try {
  134. $('body').ripples({
  135. resolution: 512,
  136. dropRadius: 20, //px
  137. perturbance: 0.04,
  138. });
  139. }
  140. catch (e) {
  141. $('.error').show().text(e);
  142. }
  143. //setInterval(function () {
  144. // var $el = $('body');
  145. // var x = Math.random() * $el.outerWidth();
  146. // var y = Math.random() * $el.outerHeight();
  147. // var dropRadius = 20;
  148. // var strength = 0.04 + Math.random() * 0.04;
  149. // $el.ripples('drop', x, y, dropRadius, strength);
  150. //}, 400);
  151. });
  152. </script>
  153. <script src="~/Scripts/notify.min.js"></script>
  154. @{
  155. if (Context.Request.Headers[HeaderNames.UserAgent].ToString().Contains(new[] { "IE", "InternetExplorer" }))
  156. {
  157. <script type="text/javascript">
  158. notie.confirm("亲爱的访客,我们检测到您正在使用IE浏览器,本网站的某些功能或特性可能不会完美地支持IE浏览器,但您可以继续浏览,不过为了更好的体验效果,建议您使用Chrome、Firefox等相同或类似的更高级浏览器访问本网站。珍惜生命,远离IE!", '朕知道了', "挡住我了", function () {
  159. notie.alert(1, '为消灭IE做一点贡献,就是为世界上所有广大的互联网开发者们少加一点儿班做善事!<br/>IE:只要不升级,我还会回来的,我就是这么倔强!', 5);
  160. });
  161. </script>
  162. }
  163. }
  164. <script>
  165. (function () {
  166. var bp = document.createElement('script');
  167. var curProtocol = window.location.protocol.split(':')[0];
  168. if (curProtocol === 'https') {
  169. bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
  170. }
  171. else {
  172. bp.src = 'http://push.zhanzhang.baidu.com/push.js';
  173. }
  174. var s = document.getElementsByTagName("script")[0];
  175. s.parentNode.insertBefore(bp, s);
  176. })();
  177. </script>