123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <!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" content="no-cache">
- <meta http-equiv="pragram" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <!-- 自动将HTTP请求升级成安全的HTTPS请求 -->
- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
- <!-- 设置苹果工具栏颜色 -->
- <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" />
- <!-- <script data-key="responsivevoice.js" src="https://code.responsivevoice.org/responsivevoice.js?key=5tX5zUJU" ></script> -->
- <!-- <script data-key="responsivevoice.js" src="/responsivevoice.js?key=5tX5zUJU"></script> -->
- <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://oss.dayaedu.com/appstore/ChromeStandaloneSetup32.exe');
- }
- if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
- window.open('https://oss.dayaedu.com/appstore/ChromeStandaloneSetup64.exe');
- }
- if (isMac) {
- window.open('https://oss.dayaedu.com/appstore/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) {
- const reloadPage = async () => {
- if ('serviceWorker' in navigator) {
- // let refreshing = false
- const flag = (await caches.keys()).length > 0;
- // console.log(caches.keys(), `0904路由更新有缓存${flag}`);
- caches.keys().then(function (cacheNames) {
- cacheNames.forEach(function (cacheName) {
- caches.delete(cacheName);
- });
- });
- // 尝试监听install
- }
- console.log('index.html')
- window.location.reload();
- }
- // let refreshing = false
- // if ('serviceWorker' in navigator) {
- // // let refreshing = false
- // let flag = caches.keys().length > 0
- // console.log(caches.keys(), 'caches.keys()', `是否有缓存${flag}`);
- // caches.keys().then(function (cacheNames) {
- // cacheNames.forEach(function (cacheName) {
- // caches.delete(cacheName);
- // });
- // if (flag) {
- // window.location.reload()
- // }
- // });
- // // 尝试监听install
- // }
- // let refreshing = false
- // navigator.serviceWorker.addEventListener('controllerchange', () => {
- // console.log('controllerchange')
- // if (refreshing) {
- // return
- // }
- // refreshing = true;
- // window.location.reload();
- // })
- if (!isChrome()) {
- // document.writeln("<div class='imgWrap'><img src='https://oss.dayaedu.com/gyt/basic/1688699993534.png' class='bgImg' alt=''><img src='https://oss.dayaedu.com/gyt/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://oss.dayaedu.com/gyt/basic/1688699993534.png' class='bgImg' alt=''><img src='https://oss.dayaedu.com/gyt/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://oss.dayaedu.com/gyt/basic/1688699993534.png' class='bgImg' alt=''><img src='https://oss.dayaedu.com/gyt/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="./index-d5898469-1724872791500.js"></script>
- <link rel="stylesheet" href="./index-32cf2f0d.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"></head>
- <!-- 按钮 https://oss.dayaedu.com/gyt/basic/1688699779209.png -->
- <!-- 背景 https://oss.dayaedu.com/gyt/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="./polyfills-legacy-8e22e21e-1724872791500.js"></script>
- <script nomodule crossorigin id="vite-legacy-entry" data-src="./index-legacy-508a3c9b-1724872791500.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
- </body>
- </html>
|