index.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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-e7f002bd.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: 456px;
  49. position: absolute;
  50. top: 141px;
  51. left: 50%;
  52. margin-left: -288px;
  53. } */
  54. .imgWrap {
  55. margin-top: 7.34375vw;
  56. text-align: center;
  57. /* width: 456px;
  58. position: absolute;
  59. top: 141px;
  60. left: 50%;
  61. margin-left: -288px;*/
  62. }
  63. .subMsg {
  64. margin-top: 1.66667vw;
  65. font-size: 1.14583vw;
  66. line-height: 1.5625vw;
  67. color: #777;
  68. }
  69. .subBtn {
  70. width: 12.03125vw;
  71. height: 3.22917vw;
  72. background: #198CFE;
  73. border-radius: 0.9375vw;
  74. border: none;
  75. font-size: 1.14583vw;
  76. font-family: PingFangSC-Semibold, PingFang SC;
  77. font-weight: 600;
  78. color: #FFFFFF;
  79. line-height: 1.5625vw;
  80. cursor: pointer;
  81. margin-top: 1.66667vw;
  82. }
  83. </style>
  84. <!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
  85. <!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
  86. <body class="myBody">
  87. <script type="text/javascript">
  88. function getChromeVersion() {
  89. var arr = navigator.userAgent.split(' ');
  90. var chromeVersion = '';
  91. for (let i = 0; i < arr.length; i++) {
  92. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  93. }
  94. if (chromeVersion) {
  95. return Number(chromeVersion.split('/')[1].split('.')[0]);
  96. } else {
  97. return false;
  98. }
  99. };
  100. function IsFF() {
  101. var sAgent = window.navigator.userAgent.toLowerCase();
  102. if (sAgent.indexOf("firefox") != -1) {
  103. return true;
  104. }
  105. return false;
  106. }
  107. function isChrome() {
  108. var isChromium = window.chrome;
  109. var winNav = window.navigator;
  110. var vendorName = winNav.vendor;
  111. var isOpera = typeof window.opr !== 'undefined';
  112. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  113. var isIOSChrome = winNav.userAgent.match('CriOS');
  114. return (
  115. isIOSChrome ||
  116. (isChromium !== null &&
  117. typeof isChromium !== 'undefined' &&
  118. vendorName === 'Google Inc.' &&
  119. isOpera === false &&
  120. isIEedge === false)
  121. );
  122. };
  123. function IEVersion() {
  124. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  125. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  126. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  127. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  128. if (isIE) {
  129. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  130. reIE.test(userAgent);
  131. var fIEVersion = parseFloat(RegExp["$1"]);
  132. if (fIEVersion == 7) {
  133. return 7;
  134. } else if (fIEVersion == 8) {
  135. return 8;
  136. } else if (fIEVersion == 9) {
  137. return 9;
  138. } else if (fIEVersion == 10) {
  139. return 10;
  140. } else {
  141. return 6;//IE版本<=7
  142. }
  143. } else if (isEdge) {
  144. return 'edge';//edge
  145. } else if (isIE11) {
  146. return 11; //IE11
  147. } else {
  148. return -1;//不是ie浏览器
  149. }
  150. }
  151. (function (window) {
  152. // if (IEVersion() != -1) {
  153. // 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'>" +
  154. // "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
  155. // str2 + "</h2>");
  156. // document.execCommand("Stop");
  157. // };
  158. if (!isChrome()) {
  159. console.log(1)
  160. // 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>");
  161. document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn'>下载谷歌浏览器</button>");
  162. document.execCommand("Stop");
  163. // if (IsFF()) {
  164. // window.stop()
  165. // } else {
  166. // document.execCommand("Stop");
  167. // }
  168. } else {
  169. if (getChromeVersion() < 90) {
  170. console.log(2)
  171. 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>");
  172. document.execCommand("Stop");
  173. }
  174. // if (IsFF()) {
  175. }
  176. })(window);
  177. </script>
  178. <div id="app"></div>
  179. <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>
  180. <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-fb1ae481.js"></script>
  181. <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-054a5908.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  182. </body>
  183. </html>