index.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="./favicon.ico" />
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  8. <meta http-equiv="Cache-control" content="no-cache">
  9. <meta http-equiv="Cache" content="no-cache">
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <!-- 设置苹果工具栏颜色 -->
  12. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  13. <!-- 忽略页面中的数字识别为电话,忽略email识别 -->
  14. <meta name="format-detection" content="telphone=no, email=no" />
  15. <!-- 启用360浏览器的极速模式(webkit) -->
  16. <meta name="renderer" content="webkit" />
  17. <!-- 避免IE使用兼容模式 -->
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  19. <meta name="HandheldFriendly" content="true" />
  20. <!-- 设置在apple上以应用模式启动时,是否全屏 -->
  21. <meta name="apple-touch-fullscreen" content="yes" />
  22. <!-- windows phone 点击无高光 -->
  23. <meta name="msapplication-tap-highlight" content="no" />
  24. <meta name="referrer" content="no-referrer" />
  25. <title>老师端</title>
  26. <script type="module" crossorigin src="./assets/index-2d47a39b.js"></script>
  27. <link rel="stylesheet" href="./assets/index-636b0edf.css">
  28. <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
  29. <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
  30. </head>
  31. <style>
  32. body {
  33. background: #f1f5ff;
  34. width: 100%;
  35. }
  36. .bgImg {
  37. width: 23.75vw;
  38. }
  39. .btnImg {
  40. width: 15vw;
  41. position: absolute;
  42. left: 50%;
  43. margin-left: -7.5vw;
  44. bottom: 1.61458vw;
  45. cursor: pointer;
  46. }
  47. .imgWrap {
  48. width: 23.75vw;
  49. position: absolute;
  50. top: 7.34375vw;
  51. left: 50%;
  52. margin-left: -15vw;
  53. }
  54. </style>
  55. <!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
  56. <!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
  57. <body class="myBody">
  58. <script type="text/javascript">
  59. function getChromeVersion() {
  60. var arr = navigator.userAgent.split(' ');
  61. var chromeVersion = '';
  62. for (let i = 0; i < arr.length; i++) {
  63. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  64. }
  65. if (chromeVersion) {
  66. return Number(chromeVersion.split('/')[1].split('.')[0]);
  67. } else {
  68. return false;
  69. }
  70. };
  71. function IsFF() {
  72. var sAgent = window.navigator.userAgent.toLowerCase();
  73. if (sAgent.indexOf("firefox") != -1) {
  74. return true;
  75. }
  76. return false;
  77. }
  78. function isChrome() {
  79. var isChromium = window.chrome;
  80. var winNav = window.navigator;
  81. var vendorName = winNav.vendor;
  82. var isOpera = typeof window.opr !== 'undefined';
  83. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  84. var isIOSChrome = winNav.userAgent.match('CriOS');
  85. return (
  86. isIOSChrome ||
  87. (isChromium !== null &&
  88. typeof isChromium !== 'undefined' &&
  89. vendorName === 'Google Inc.' &&
  90. isOpera === false &&
  91. isIEedge === false)
  92. );
  93. };
  94. function IEVersion() {
  95. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  96. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  97. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  98. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  99. if (isIE) {
  100. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  101. reIE.test(userAgent);
  102. var fIEVersion = parseFloat(RegExp["$1"]);
  103. if (fIEVersion == 7) {
  104. return 7;
  105. } else if (fIEVersion == 8) {
  106. return 8;
  107. } else if (fIEVersion == 9) {
  108. return 9;
  109. } else if (fIEVersion == 10) {
  110. return 10;
  111. } else {
  112. return 6;//IE版本<=7
  113. }
  114. } else if (isEdge) {
  115. return 'edge';//edge
  116. } else if (isIE11) {
  117. return 11; //IE11
  118. } else {
  119. return -1;//不是ie浏览器
  120. }
  121. }
  122. (function (window) {
  123. // if (IEVersion() != -1) {
  124. // document.writeln("<pre style='text-align:center;color:#fff;background-color:#0cc; height:100%;border:0;position:fixed;top:0;left:0;width:100%;z-index:1234'>" +
  125. // "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
  126. // str2 + "</h2>");
  127. // document.execCommand("Stop");
  128. // };
  129. if (!isChrome()) {
  130. console.log(1)
  131. document.writeln("<div class='imgWrap'><img src='https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png' class='bgImg' alt=''><img src='https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png' class='btnImg' alt=''></div>");
  132. document.execCommand("Stop");
  133. // if (IsFF()) {
  134. // window.stop()
  135. // } else {
  136. // document.execCommand("Stop");
  137. // }
  138. } else {
  139. if (getChromeVersion() < 90) {
  140. console.log(2)
  141. document.writeln("<div class='imgWrap'><img src='https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png' class='bgImg' alt=''><img src='https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png' class='btnImg' alt=''></div>");
  142. document.execCommand("Stop");
  143. }
  144. // if (IsFF()) {
  145. }
  146. })(window);
  147. </script>
  148. <div id="app"></div>
  149. <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
  150. <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-fb1ae481.js"></script>
  151. <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-76ed30e6.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  152. </body>
  153. </html>