mo 1 éve
szülő
commit
a43d7e0fe5
1 módosított fájl, 88 hozzáadás és 82 törlés
  1. 88 82
      dist/index.html

+ 88 - 82
dist/index.html

@@ -26,95 +26,89 @@
   <meta name="msapplication-tap-highlight" content="no" />
   <meta name="referrer" content="no-referrer" />
   <title>老师端</title>
-  <script type="module" crossorigin src="./assets/index-2d47a39b.js"></script>
-  <link rel="stylesheet" href="./assets/index-636b0edf.css">
-  <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
-  <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>
-</head>
-<style>
-  body {
-    background: #f1f5ff;
-    width: 100%;
-  }
-
-  .bgImg {
-    width: 23.75vw;
-  }
-
-  .btnImg {
-    width: 15vw;
-    position: absolute;
-    left: 50%;
-    margin-left: -7.5vw;
-    bottom: 1.61458vw;
-    cursor: pointer;
-  }
-
-  /* .imgWrap {
-    width: 456px;
-    position: absolute;
-    top: 141px;
-    left: 50%;
-    margin-left: -288px;
-  } */
-
-  .imgWrap {
-    margin-top: 15.625vw;
-    text-align: center;
-    /* width: 456px;
-        position: absolute;
-        top: 141px;
-        left: 50%;
-        margin-left: -288px;*/
-  }
-
-  .subMsg {
-    margin-top: 1.66667vw;
-    font-size: 1.14583vw;
-    line-height: 1.5625vw;
-    color: #777;
-  }
-
-  .subBtn {
-    width: 12.03125vw;
-    height: 3.22917vw;
-    background: #198CFE;
-    border-radius: 0.9375vw;
-    border: none;
-    font-size: 1.14583vw;
-    font-family: PingFangSC-Semibold, PingFang SC;
-    font-weight: 600;
-    color: #FFFFFF;
-    line-height: 1.5625vw;
-    cursor: pointer;
-    margin-top: 1.66667vw;
-    list-style: none outside none;
-    text-decoration: none;
-  }
-</style>
-<!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
-<!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
+  <style>
+    body {
+      background: #f1f5ff;
+      width: 100%;
+    }
 
-<body class="myBody">
+    .bgImg {
+      width: 456Px;
+      height: 522Px;
+    }
+
+    .btnImg {
+      width: 288Px;
+      position: absolute;
+      left: 50%;
+      margin-left: -144Px;
+      bottom: 31Px;
+      cursor: pointer;
+      z-index: 100;
+
+    }
+
+    .imgWrap {
+      width: 456Px;
+      height: 522Px;
+      margin: 140Px auto 0;
+      position: relative;
+      z-index: 100;
+    }
+
+    /* margin-top: 300px; */
+    .textWrap {
+      margin-top: 140Px;
+      text-align: center;
+      width: 500Px;
+      position: absolute;
+      top: 141Px;
+      left: 50%;
+      margin-left: -288Px;
+    }
+
+    .subMsg {
+      margin-top: 32Px;
+      font-size: 22Px;
+      line-height: 30Px;
+      color: #777;
+    }
+
+    .subBtn {
+      width: 231Px;
+      height: 62Px;
+      background: #198CFE;
+      border-radius: 18Px;
+      border: none;
+      font-size: 22Px;
+      font-weight: 600;
+      color: #FFFFFF;
+      line-height: 30Px;
+      cursor: pointer;
+      margin-top: 32Px;
+      list-style: none outside none;
+      text-decoration: none;
+    }
+  </style>
   <script type="text/javascript">
     function gotoLinlk() {
       console.log('点击')
       var agent = navigator.userAgent.toLowerCase();
       var isMac = function () { return /macintosh|mac os x/i.test(navigator.userAgent); }();
       if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
-        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup32.exe')
+        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup32.exe');
       }
       if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
-        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup64.exe')
+        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/ChromeStandaloneSetup64.exe');
       }
       if (isMac) {
-        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/googlechrome-mac.dmg')
+        window.open('https://appstore.ks3-cn-beijing.ksyuncs.com/googlechrome-mac.dmg');
       }
     }
     function getChromeVersion() {
       var arr = navigator.userAgent.split(' ');
       var chromeVersion = '';
-      for (let i = 0; i < arr.length; i++) {
+      for (var i = 0; i < arr.length; i++) {
         if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
       }
       if (chromeVersion) {
@@ -188,19 +182,20 @@
 
       if (!isChrome()) {
         // 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>");
-        document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
-        document.execCommand("Stop");
-        // if (IsFF()) {
-        //   window.stop()
-        // } else {
-        //   document.execCommand("Stop");
-        // }
 
+
+        if (IEVersion() < 9 && IEVersion() != -1) {
+
+          document.writeln(" <div class='textWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
+          document.execCommand("Stop");
+        } else {
+          document.writeln(" <div class='imgWrap'><img onabort='this.src=this.src' 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'  onabort='this.src=this.src' onclick='gotoLinlk()' class='btnImg' alt=''></div>");
+          document.execCommand("Stop");
+        }
       } else {
-        console.log(getChromeVersion(), 'getChromeVersion')
         if (getChromeVersion() < 90) {
 
-          document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
+          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>");
           document.execCommand("Stop");
           window.stop()
           console.log('Stop')
@@ -211,6 +206,17 @@
 
     })(window);
   </script>
+  <script type="module" crossorigin src="./assets/index-2d47a39b.js"></script>
+  <link rel="stylesheet" href="./assets/index-636b0edf.css">
+  <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
+  <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>
+</head>
+
+<!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
+<!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
+
+<body class="myBody">
+
   <div id="app"></div>