<!DOCTYPE html>

<html lang="zh-CN">


<head>
  <meta charset="UTF-8" />
  <link rel="icon" href="./favicon.ico" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Cache" content="no-cache">
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <!-- 设置苹果工具栏颜色 -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <!-- 忽略页面中的数字识别为电话,忽略email识别 -->
  <meta name="format-detection" content="telphone=no, email=no" />
  <!-- 启用360浏览器的极速模式(webkit) -->
  <meta name="renderer" content="webkit" />
  <!-- 避免IE使用兼容模式 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="HandheldFriendly" content="true" />
  <!-- 设置在apple上以应用模式启动时,是否全屏 -->
  <meta name="apple-touch-fullscreen" content="yes" />
  <!-- windows phone 点击无高光 -->
  <meta name="msapplication-tap-highlight" content="no" />
  <meta name="referrer" content="no-referrer" />
  <title>音乐数字课堂</title>

  <style>
    body {
      background: #f1f5ff;
      width: 100%;
    }

    .bgImg {
      width: 23.75vw;
      height: 27.1875vw;
    }

    .btnImg {
      width: 15vw;
      position: absolute;
      left: 50%;
      margin-left: -7.5vw;
      bottom: 1.61458333vw;
      cursor: pointer;
      z-index: 100;

    }

    .imgWrap {
      width: 23.75vw;
      height: 27.1875vw;
      margin: 7.29166667vw auto 0;
      position: relative;
      z-index: 100;
    }

    /* margin-top: 300px; */
    .textWrap {
      margin-top: 7.29166667vw;
      text-align: center;
      width: 26.04166667vw;
      position: absolute;
      top: 7.34375vw;
      left: 50%;
      margin-left: -15vw;
    }

    .subMsg {
      margin-top: 1.66666667vw;
      font-size: 1.14583333rem;
      line-height: 1.5625vw;
      color: #777;
    }

    .subBtn {
      width: 12.03125vw;
      height: 3.22916667vw;
      background: #198CFE;
      border-radius: 0.9375vw;
      border: none;
      font-size: 1.14583333rem;
      font-weight: 600;
      color: #FFFFFF;
      line-height: 1.5625vw;
      cursor: pointer;
      margin-top: 1.66666667vw;
      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');
      }
      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 = '';
      for (var i = 0; i < arr.length; i++) {
        if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
      }
      if (chromeVersion) {
        return Number(chromeVersion.split('/')[1].split('.')[0]);
      } else {
        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;
      var winNav = window.navigator;
      var vendorName = winNav.vendor;
      var isOpera = typeof window.opr !== 'undefined';
      var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
      var isIOSChrome = winNav.userAgent.match('CriOS');
      return (
        isIOSChrome ||
        (isChromium !== null &&
          typeof isChromium !== 'undefined' &&
          vendorName === 'Google Inc.' &&
          isOpera === false &&
          isIEedge === false)
      );
    };
    function IEVersion() {
      var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
      var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
      var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
      var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
      if (isIE) {
        var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
        reIE.test(userAgent);
        var fIEVersion = parseFloat(RegExp["$1"]);
        if (fIEVersion == 7) {
          return 7;
        } else if (fIEVersion == 8) {
          return 8;
        } else if (fIEVersion == 9) {
          return 9;
        } else if (fIEVersion == 10) {
          return 10;
        } else {
          return 6;//IE版本<=7
        }
      } else if (isEdge) {
        return 'edge';//edge
      } else if (isIE11) {
        return 11; //IE11
      } else {
        return -1;//不是ie浏览器
      }
    }
    (function (window) {

      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>");


        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 {
        if (getChromeVersion() < 90) {

          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')
        }

        // if (IsFF()) {

      }

    })(window);
  </script>
  <script type="module" crossorigin src="./assets/index-937aaf25.js"></script>
  <link rel="stylesheet" href="./assets/index-e39fd380.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>
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></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>
  

  <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>
  <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-8e22e21e.js"></script>
  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-6734fba5.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>

</html>