mo 1 år sedan
förälder
incheckning
41781b218f
1 ändrade filer med 14 tillägg och 13 borttagningar
  1. 14 13
      dist/index.html

+ 14 - 13
dist/index.html

@@ -50,16 +50,17 @@
     cursor: pointer;
   }
 
-  /* .imgWrap {
-    width: 456px;
+  .imgWrap {
+    width: 23.75vw;
     position: absolute;
-    top: 141px;
+    top: 7.34375vw;
     left: 50%;
-    margin-left: -288px;
-  } */
+    margin-left: -15vw;
+  }
 
-  .imgWrap {
-    /* margin-top: 300px; */
+  /* margin-top: 300px; */
+  .textWrap {
+    margin-top: 15.625vw;
     text-align: center;
     width: 23.75vw;
     position: absolute;
@@ -180,18 +181,18 @@
         // 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>");
 
 
-        if (IEVersion() < 9) {
-          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>");
-          alert('1111')
+        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'><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");
         }
       } 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')