|
@@ -91,6 +91,20 @@
|
|
|
|
|
|
<body class="myBody">
|
|
|
<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')
|
|
|
+ }
|
|
|
+ if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
|
|
|
+ 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')
|
|
|
+ }
|
|
|
+ }
|
|
|
function getChromeVersion() {
|
|
|
var arr = navigator.userAgent.split(' ');
|
|
|
var chromeVersion = '';
|
|
@@ -169,7 +183,7 @@
|
|
|
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.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn'>下载谷歌浏览器</button>");
|
|
|
+ document.writeln(" <div class='imgWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
|
|
|
document.execCommand("Stop");
|
|
|
// if (IsFF()) {
|
|
|
// window.stop()
|