|
@@ -27,8 +27,37 @@
|
|
|
<meta name="referrer" content="no-referrer" />
|
|
|
<title>老师端</title>
|
|
|
</head>
|
|
|
+<style>
|
|
|
+ body {
|
|
|
+ background: #f1f5ff;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
|
|
|
-<body>
|
|
|
+ .bgImg {
|
|
|
+ width: 456px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btnImg {
|
|
|
+ width: 288px;
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ margin-left: -144px;
|
|
|
+ bottom: 31px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .imgWrap {
|
|
|
+ width: 456px;
|
|
|
+ position: absolute;
|
|
|
+ top: 141px;
|
|
|
+ left: 50%;
|
|
|
+ margin-left: -288px;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+<!-- 按钮 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699779209.png -->
|
|
|
+<!-- 背景 https://gyt.ks3-cn-beijing.ksyuncs.com/basic/1688699993534.png -->
|
|
|
+
|
|
|
+<body class="myBody">
|
|
|
<script type="text/javascript">
|
|
|
function getChromeVersion() {
|
|
|
var arr = navigator.userAgent.split(' ');
|
|
@@ -42,7 +71,14 @@
|
|
|
return false;
|
|
|
}
|
|
|
};
|
|
|
+ function IsFF() {
|
|
|
+ var sAgent = window.navigator.userAgent.toLowerCase();
|
|
|
|
|
|
+ if (sAgent.indexOf("firefox") != -1) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
function isChrome() {
|
|
|
var isChromium = window.chrome;
|
|
@@ -90,24 +126,32 @@
|
|
|
}
|
|
|
(function (window) {
|
|
|
|
|
|
- if (IEVersion() != -1) {
|
|
|
- var str = "你的浏览器版本太低了,请升级后重试 :(";
|
|
|
- var str2 = "推荐使用:<a href='https://www.google.cn/intl/zh-CN/chrome/' target='_blank' style='color:blue;'>谷歌浏览器</a>,"
|
|
|
- ;
|
|
|
- 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'>" +
|
|
|
- "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
|
|
|
- str2 + "</h2>");
|
|
|
- document.execCommand("Stop");
|
|
|
- };
|
|
|
- console.log(isChrome(), getChromeVersion())
|
|
|
- if (isChrome() && getChromeVersion() < 87) {
|
|
|
- var str = "你的浏览器版本太低了,请升级后重试 :(";
|
|
|
- var str2 = "推荐使用:<a href='https://www.google.cn/intl/zh-CN/chrome/' target='_blank' style='color:blue;'>谷歌浏览器</a>,"
|
|
|
- ;
|
|
|
- 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'>" +
|
|
|
- "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
|
|
|
- str2 + "</h2>");
|
|
|
+ // if (IEVersion() != -1) {
|
|
|
+
|
|
|
+ // 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'>" +
|
|
|
+ // "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
|
|
|
+ // str2 + "</h2>");
|
|
|
+ // document.execCommand("Stop");
|
|
|
+ // };
|
|
|
+
|
|
|
+ if (!isChrome()) {
|
|
|
+ console.log(1)
|
|
|
+ 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.execCommand("Stop");
|
|
|
+ // if (IsFF()) {
|
|
|
+ // window.stop()
|
|
|
+ // } else {
|
|
|
+ // document.execCommand("Stop");
|
|
|
+ // }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ if (getChromeVersion() < 90) {
|
|
|
+ console.log(2)
|
|
|
+ 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.execCommand("Stop");
|
|
|
+ }
|
|
|
+
|
|
|
+ // if (IsFF()) {
|
|
|
}
|
|
|
|
|
|
})(window);
|