index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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-d260da16.js"></script>
  27. <link rel="stylesheet" href="./assets/index-39ebe4a3.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. <body>
  32. <script type="text/javascript">
  33. function getChromeVersion() {
  34. var arr = navigator.userAgent.split(' ');
  35. var chromeVersion = '';
  36. for (let i = 0; i < arr.length; i++) {
  37. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  38. }
  39. if (chromeVersion) {
  40. return Number(chromeVersion.split('/')[1].split('.')[0]);
  41. } else {
  42. return false;
  43. }
  44. };
  45. function isChrome() {
  46. var isChromium = window.chrome;
  47. var winNav = window.navigator;
  48. var vendorName = winNav.vendor;
  49. var isOpera = typeof window.opr !== 'undefined';
  50. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  51. var isIOSChrome = winNav.userAgent.match('CriOS');
  52. return (
  53. isIOSChrome ||
  54. (isChromium !== null &&
  55. typeof isChromium !== 'undefined' &&
  56. vendorName === 'Google Inc.' &&
  57. isOpera === false &&
  58. isIEedge === false)
  59. );
  60. };
  61. function IEVersion() {
  62. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  63. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  64. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  65. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  66. if (isIE) {
  67. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  68. reIE.test(userAgent);
  69. var fIEVersion = parseFloat(RegExp["$1"]);
  70. if (fIEVersion == 7) {
  71. return 7;
  72. } else if (fIEVersion == 8) {
  73. return 8;
  74. } else if (fIEVersion == 9) {
  75. return 9;
  76. } else if (fIEVersion == 10) {
  77. return 10;
  78. } else {
  79. return 6;//IE版本<=7
  80. }
  81. } else if (isEdge) {
  82. return 'edge';//edge
  83. } else if (isIE11) {
  84. return 11; //IE11
  85. } else {
  86. return -1;//不是ie浏览器
  87. }
  88. }
  89. (function (window) {
  90. if (IEVersion() != -1) {
  91. var str = "你的浏览器版本太低了,请升级后重试 :(";
  92. var str2 = "推荐使用:<a href='https://www.google.cn/intl/zh-CN/chrome/' target='_blank' style='color:blue;'>谷歌浏览器</a>,"
  93. ;
  94. 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'>" +
  95. "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
  96. str2 + "</h2>");
  97. document.execCommand("Stop");
  98. };
  99. console.log(isChrome(), getChromeVersion())
  100. if (isChrome() && getChromeVersion() < 87) {
  101. var str = "你的浏览器版本太低了,请升级后重试 :(";
  102. var str2 = "推荐使用:<a href='https://www.google.cn/intl/zh-CN/chrome/' target='_blank' style='color:blue;'>谷歌浏览器</a>,"
  103. ;
  104. 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'>" +
  105. "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
  106. str2 + "</h2>");
  107. document.execCommand("Stop");
  108. }
  109. })(window);
  110. </script>
  111. <div id="app"></div>
  112. <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>
  113. <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-fb1ae481.js"></script>
  114. <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-136d0b25.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  115. </body>
  116. </html>