index.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. <<<<<<< HEAD
  27. <script type="module" crossorigin src="./assets/index-9d05148b.js"></script>
  28. <link rel="stylesheet" href="./assets/index-9f374edd.css">
  29. =======
  30. <script type="module" crossorigin src="./assets/index-2d47a39b.js"></script>
  31. <link rel="stylesheet" href="./assets/index-636b0edf.css">
  32. <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
  33. <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>
  34. >>>>>>> compatible
  35. </head>
  36. <style>
  37. body {
  38. background: #f1f5ff;
  39. width: 100%;
  40. }
  41. .bgImg {
  42. width: 23.75vw;
  43. }
  44. .btnImg {
  45. width: 15vw;
  46. position: absolute;
  47. left: 50%;
  48. margin-left: -7.5vw;
  49. bottom: 1.61458vw;
  50. cursor: pointer;
  51. }
  52. /* .imgWrap {
  53. width: 456px;
  54. position: absolute;
  55. top: 141px;
  56. left: 50%;
  57. margin-left: -288px;
  58. } */
  59. .imgWrap {
  60. margin-top: 15.625vw;
  61. text-align: center;
  62. /* width: 456px;
  63. position: absolute;
  64. top: 141px;
  65. left: 50%;
  66. margin-left: -288px;*/
  67. }
  68. .subMsg {
  69. margin-top: 1.66667vw;
  70. font-size: 1.14583vw;
  71. line-height: 1.5625vw;
  72. color: #777;
  73. }
  74. .subBtn {
  75. width: 12.03125vw;
  76. height: 3.22917vw;
  77. background: #198CFE;
  78. border-radius: 0.9375vw;
  79. border: none;
  80. font-size: 1.14583vw;
  81. font-family: PingFangSC-Semibold, PingFang SC;
  82. font-weight: 600;
  83. color: #FFFFFF;
  84. line-height: 1.5625vw;
  85. cursor: pointer;
  86. margin-top: 1.66667vw;
  87. list-style: none outside none;
  88. text-decoration: none;
  89. }
  90. </style>
  91. <!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
  92. <!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
  93. <body class="myBody">
  94. <script type="text/javascript">
  95. function gotoLinlk() {
  96. console.log('点击')
  97. var agent = navigator.userAgent.toLowerCase();
  98. var isMac = function () { return /macintosh|mac os x/i.test(navigator.userAgent); }();
  99. if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
  100. window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup32.exe')
  101. }
  102. if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
  103. window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup64.exe')
  104. }
  105. if (isMac) {
  106. window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/googlechrome-mac.dmg')
  107. }
  108. }
  109. function getChromeVersion() {
  110. var arr = navigator.userAgent.split(' ');
  111. var chromeVersion = '';
  112. for (let i = 0; i < arr.length; i++) {
  113. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  114. }
  115. if (chromeVersion) {
  116. return Number(chromeVersion.split('/')[1].split('.')[0]);
  117. } else {
  118. return false;
  119. }
  120. };
  121. function IsFF() {
  122. var sAgent = window.navigator.userAgent.toLowerCase();
  123. if (sAgent.indexOf("firefox") != -1) {
  124. return true;
  125. }
  126. return false;
  127. }
  128. function isChrome() {
  129. var isChromium = window.chrome;
  130. var winNav = window.navigator;
  131. var vendorName = winNav.vendor;
  132. var isOpera = typeof window.opr !== 'undefined';
  133. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  134. var isIOSChrome = winNav.userAgent.match('CriOS');
  135. return (
  136. isIOSChrome ||
  137. (isChromium !== null &&
  138. typeof isChromium !== 'undefined' &&
  139. vendorName === 'Google Inc.' &&
  140. isOpera === false &&
  141. isIEedge === false)
  142. );
  143. };
  144. function IEVersion() {
  145. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  146. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  147. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  148. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  149. if (isIE) {
  150. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  151. reIE.test(userAgent);
  152. var fIEVersion = parseFloat(RegExp["$1"]);
  153. if (fIEVersion == 7) {
  154. return 7;
  155. } else if (fIEVersion == 8) {
  156. return 8;
  157. } else if (fIEVersion == 9) {
  158. return 9;
  159. } else if (fIEVersion == 10) {
  160. return 10;
  161. } else {
  162. return 6;//IE版本<=7
  163. }
  164. } else if (isEdge) {
  165. return 'edge';//edge
  166. } else if (isIE11) {
  167. return 11; //IE11
  168. } else {
  169. return -1;//不是ie浏览器
  170. }
  171. }
  172. (function (window) {
  173. // if (IEVersion() != -1) {
  174. // 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'>" +
  175. // "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
  176. // str2 + "</h2>");
  177. // document.execCommand("Stop");
  178. // };
  179. if (!isChrome()) {
  180. // 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>");
  181. document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
  182. document.execCommand("Stop");
  183. // if (IsFF()) {
  184. // window.stop()
  185. // } else {
  186. // document.execCommand("Stop");
  187. // }
  188. } else {
  189. console.log(getChromeVersion(), 'getChromeVersion')
  190. if (getChromeVersion() < 90) {
  191. document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
  192. document.execCommand("Stop");
  193. window.stop()
  194. console.log('Stop')
  195. }
  196. // if (IsFF()) {
  197. }
  198. })(window);
  199. </script>
  200. <div id="app"></div>
  201. <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>
  202. <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-fb1ae481.js"></script>
  203. <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>
  204. </body>
  205. </html>