index.html 8.2 KB

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