index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="./favicon.ico" />
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  8. <meta http-equiv="Cache" content="no-cache">
  9. <meta http-equiv="pragram" content="no-cache">
  10. <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  11. <meta http-equiv="pragma" content="no-cache">
  12. <meta http-equiv="expires" content="0">
  13. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  14. <meta name="apple-mobile-web-app-capable" content="yes" />
  15. <!-- 自动将HTTP请求升级成安全的HTTPS请求 -->
  16. <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
  17. <!-- 设置苹果工具栏颜色 -->
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  19. <!-- 忽略页面中的数字识别为电话,忽略email识别 -->
  20. <meta name="format-detection" content="telphone=no, email=no" />
  21. <!-- 启用360浏览器的极速模式(webkit) -->
  22. <meta name="renderer" content="webkit" />
  23. <!-- 避免IE使用兼容模式 -->
  24. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  25. <meta name="HandheldFriendly" content="true" />
  26. <!-- 设置在apple上以应用模式启动时,是否全屏 -->
  27. <meta name="apple-touch-fullscreen" content="yes" />
  28. <!-- windows phone 点击无高光 -->
  29. <meta name="msapplication-tap-highlight" content="no" />
  30. <meta name="referrer" content="no-referrer" />
  31. <!-- <script data-key="responsivevoice.js" src="https://code.responsivevoice.org/responsivevoice.js?key=5tX5zUJU" ></script> -->
  32. <!-- <script data-key="responsivevoice.js" src="/responsivevoice.js?key=5tX5zUJU"></script> -->
  33. <title>音乐数字课堂</title>
  34. <style>
  35. body {
  36. background: #f1f5ff;
  37. width: 100%;
  38. }
  39. .bgImg {
  40. width: 23.75vw;
  41. height: 27.1875vw;
  42. }
  43. .btnImg {
  44. width: 15vw;
  45. position: absolute;
  46. left: 50%;
  47. margin-left: -7.5vw;
  48. bottom: 1.61458333vw;
  49. cursor: pointer;
  50. z-index: 100;
  51. }
  52. .imgWrap {
  53. width: 23.75vw;
  54. height: 27.1875vw;
  55. margin: 7.29166667vw auto 0;
  56. position: relative;
  57. z-index: 100;
  58. }
  59. /* margin-top: 300px; */
  60. .textWrap {
  61. margin-top: 7.29166667vw;
  62. text-align: center;
  63. width: 26.04166667vw;
  64. position: absolute;
  65. top: 7.34375vw;
  66. left: 50%;
  67. margin-left: -15vw;
  68. }
  69. .subMsg {
  70. margin-top: 1.66666667vw;
  71. font-size: 1.14583333rem;
  72. line-height: 1.5625vw;
  73. color: #777;
  74. }
  75. .subBtn {
  76. width: 12.03125vw;
  77. height: 3.22916667vw;
  78. background: #198CFE;
  79. border-radius: 0.9375vw;
  80. border: none;
  81. font-size: 1.14583333rem;
  82. font-weight: 600;
  83. color: #FFFFFF;
  84. line-height: 1.5625vw;
  85. cursor: pointer;
  86. margin-top: 1.66666667vw;
  87. list-style: none outside none;
  88. text-decoration: none;
  89. }
  90. <<<<<<< HEAD
  91. </style>
  92. <script type="text/javascript">
  93. function gotoLinlk() {
  94. console.log('点击')
  95. var agent = navigator.userAgent.toLowerCase();
  96. var isMac = function () { return /macintosh|mac os x/i.test(navigator.userAgent); }();
  97. if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
  98. window.open('https://oss.dayaedu.com/appstore/ChromeStandaloneSetup32.exe');
  99. }
  100. if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
  101. window.open('https://oss.dayaedu.com/appstore/ChromeStandaloneSetup64.exe');
  102. }
  103. if (isMac) {
  104. window.open('https://oss.dayaedu.com/appstore/googlechrome-mac.dmg');
  105. }
  106. }
  107. function getChromeVersion() {
  108. var arr = navigator.userAgent.split(' ');
  109. var chromeVersion = '';
  110. for (var i = 0; i < arr.length; i++) {
  111. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  112. }
  113. if (chromeVersion) {
  114. return Number(chromeVersion.split('/')[1].split('.')[0]);
  115. } else {
  116. return false;
  117. }
  118. };
  119. function IsFF() {
  120. var sAgent = window.navigator.userAgent.toLowerCase();
  121. if (sAgent.indexOf("firefox") != -1) {
  122. return true;
  123. }
  124. return false;
  125. }
  126. function isChrome() {
  127. var isChromium = window.chrome;
  128. var winNav = window.navigator;
  129. var vendorName = winNav.vendor;
  130. var isOpera = typeof window.opr !== 'undefined';
  131. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  132. var isIOSChrome = winNav.userAgent.match('CriOS');
  133. return (
  134. isIOSChrome ||
  135. (isChromium !== null &&
  136. typeof isChromium !== 'undefined' &&
  137. vendorName === 'Google Inc.' &&
  138. isOpera === false &&
  139. isIEedge === false)
  140. );
  141. };
  142. function IEVersion() {
  143. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  144. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  145. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  146. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  147. if (isIE) {
  148. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  149. reIE.test(userAgent);
  150. var fIEVersion = parseFloat(RegExp["$1"]);
  151. if (fIEVersion == 7) {
  152. return 7;
  153. } else if (fIEVersion == 8) {
  154. return 8;
  155. } else if (fIEVersion == 9) {
  156. return 9;
  157. } else if (fIEVersion == 10) {
  158. return 10;
  159. } else {
  160. return 6;//IE版本<=7
  161. }
  162. } else if (isEdge) {
  163. return 'edge';//edge
  164. } else if (isIE11) {
  165. return 11; //IE11
  166. } else {
  167. return -1;//不是ie浏览器
  168. }
  169. }
  170. (function (window) {
  171. const reloadPage = async () => {
  172. if ('serviceWorker' in navigator) {
  173. // let refreshing = false
  174. const flag = (await caches.keys()).length > 0;
  175. // console.log(caches.keys(), `0904路由更新有缓存${flag}`);
  176. caches.keys().then(function (cacheNames) {
  177. cacheNames.forEach(function (cacheName) {
  178. caches.delete(cacheName);
  179. });
  180. });
  181. // 尝试监听install
  182. }
  183. console.log('index.html')
  184. window.location.reload();
  185. }
  186. // let refreshing = false
  187. // if ('serviceWorker' in navigator) {
  188. // // let refreshing = false
  189. // let flag = caches.keys().length > 0
  190. // console.log(caches.keys(), 'caches.keys()', `是否有缓存${flag}`);
  191. // caches.keys().then(function (cacheNames) {
  192. // cacheNames.forEach(function (cacheName) {
  193. // caches.delete(cacheName);
  194. // });
  195. // if (flag) {
  196. // window.location.reload()
  197. // }
  198. // });
  199. // // 尝试监听install
  200. // }
  201. // let refreshing = false
  202. // navigator.serviceWorker.addEventListener('controllerchange', () => {
  203. // console.log('controllerchange')
  204. // if (refreshing) {
  205. // return
  206. // }
  207. // refreshing = true;
  208. // window.location.reload();
  209. // })
  210. if (!isChrome()) {
  211. // 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>");
  212. if (IEVersion() < 9 && IEVersion() != -1) {
  213. document.writeln(" <div class='textWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
  214. document.execCommand("Stop");
  215. } else {
  216. 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>");
  217. document.execCommand("Stop");
  218. }
  219. } else {
  220. if (getChromeVersion() < 90) {
  221. 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>");
  222. document.execCommand("Stop");
  223. window.stop()
  224. console.log('Stop')
  225. }
  226. // if (IsFF()) {
  227. }
  228. })(window);
  229. </script>
  230. <script type="module" crossorigin src="./index-324a91a1-1728525661307.js"></script>
  231. =======
  232. </style>
  233. <script type="text/javascript">
  234. function gotoLinlk() {
  235. console.log('点击')
  236. var agent = navigator.userAgent.toLowerCase();
  237. var isMac = function () { return /macintosh|mac os x/i.test(navigator.userAgent); }();
  238. if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
  239. window.open('https://oss.dayaedu.com/appstore/ChromeStandaloneSetup32.exe');
  240. }
  241. if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
  242. window.open('https://oss.dayaedu.com/appstore/ChromeStandaloneSetup64.exe');
  243. }
  244. if (isMac) {
  245. window.open('https://oss.dayaedu.com/appstore/googlechrome-mac.dmg');
  246. }
  247. }
  248. function getChromeVersion() {
  249. var arr = navigator.userAgent.split(' ');
  250. var chromeVersion = '';
  251. for (var i = 0; i < arr.length; i++) {
  252. if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
  253. }
  254. if (chromeVersion) {
  255. return Number(chromeVersion.split('/')[1].split('.')[0]);
  256. } else {
  257. return false;
  258. }
  259. };
  260. function IsFF() {
  261. var sAgent = window.navigator.userAgent.toLowerCase();
  262. if (sAgent.indexOf("firefox") != -1) {
  263. return true;
  264. }
  265. return false;
  266. }
  267. function isChrome() {
  268. var isChromium = window.chrome;
  269. var winNav = window.navigator;
  270. var vendorName = winNav.vendor;
  271. var isOpera = typeof window.opr !== 'undefined';
  272. var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
  273. var isIOSChrome = winNav.userAgent.match('CriOS');
  274. return (
  275. isIOSChrome ||
  276. (isChromium !== null &&
  277. typeof isChromium !== 'undefined' &&
  278. vendorName === 'Google Inc.' &&
  279. isOpera === false &&
  280. isIEedge === false)
  281. );
  282. };
  283. function IEVersion() {
  284. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  285. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  286. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  287. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  288. if (isIE) {
  289. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  290. reIE.test(userAgent);
  291. var fIEVersion = parseFloat(RegExp["$1"]);
  292. if (fIEVersion == 7) {
  293. return 7;
  294. } else if (fIEVersion == 8) {
  295. return 8;
  296. } else if (fIEVersion == 9) {
  297. return 9;
  298. } else if (fIEVersion == 10) {
  299. return 10;
  300. } else {
  301. return 6;//IE版本<=7
  302. }
  303. } else if (isEdge) {
  304. return 'edge';//edge
  305. } else if (isIE11) {
  306. return 11; //IE11
  307. } else {
  308. return -1;//不是ie浏览器
  309. }
  310. }
  311. (function (window) {
  312. const reloadPage = async () => {
  313. if ('serviceWorker' in navigator) {
  314. // let refreshing = false
  315. const flag = (await caches.keys()).length > 0;
  316. // console.log(caches.keys(), `0904路由更新有缓存${flag}`);
  317. caches.keys().then(function (cacheNames) {
  318. cacheNames.forEach(function (cacheName) {
  319. caches.delete(cacheName);
  320. });
  321. });
  322. // 尝试监听install
  323. }
  324. console.log('index.html')
  325. window.location.reload();
  326. }
  327. // let refreshing = false
  328. // if ('serviceWorker' in navigator) {
  329. // // let refreshing = false
  330. // let flag = caches.keys().length > 0
  331. // console.log(caches.keys(), 'caches.keys()', `是否有缓存${flag}`);
  332. // caches.keys().then(function (cacheNames) {
  333. // cacheNames.forEach(function (cacheName) {
  334. // caches.delete(cacheName);
  335. // });
  336. // if (flag) {
  337. // window.location.reload()
  338. // }
  339. // });
  340. // // 尝试监听install
  341. // }
  342. // let refreshing = false
  343. // navigator.serviceWorker.addEventListener('controllerchange', () => {
  344. // console.log('controllerchange')
  345. // if (refreshing) {
  346. // return
  347. // }
  348. // refreshing = true;
  349. // window.location.reload();
  350. // })
  351. if (!isChrome()) {
  352. // 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>");
  353. if (IEVersion() < 9 && IEVersion() != -1) {
  354. document.writeln(" <div class='textWrap'><h1>当前浏览器版本过低</h1><p class='subMsg'>为了保证良好的上课体验,推荐您使用谷歌浏览器</p> <button class='subBtn' onclick='gotoLinlk()'>下载谷歌浏览器</button>");
  355. document.execCommand("Stop");
  356. } else {
  357. 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>");
  358. document.execCommand("Stop");
  359. }
  360. } else {
  361. if (getChromeVersion() < 90) {
  362. 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>");
  363. document.execCommand("Stop");
  364. window.stop()
  365. console.log('Stop')
  366. }
  367. // if (IsFF()) {
  368. }
  369. })(window);
  370. </script>
  371. <script type="module" crossorigin src="./index-6198d9d3-1731319840132.js"></script>
  372. >>>>>>> 2c7dbadb7e8c85b0a926f9a8f7e7d35b1c11084a
  373. <link rel="stylesheet" href="./index-a34ec066.css">
  374. <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
  375. <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>
  376. <link rel="manifest" href="./manifest.webmanifest"></head>
  377. <!-- 按钮 https://oss.dayaedu.com/gyt/basic/1688699779209.png -->
  378. <!-- 背景 https://oss.dayaedu.com/gyt/basic/1688699993534.png -->
  379. <body class="myBody">
  380. <div id="app"></div>
  381. <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>
  382. <<<<<<< HEAD
  383. <script nomodule crossorigin id="vite-legacy-polyfill" src="./polyfills-legacy-8e22e21e-1728525661307.js"></script>
  384. <script nomodule crossorigin id="vite-legacy-entry" data-src="./index-legacy-5ed2aceb-1728525661307.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  385. </body>
  386. </html>
  387. =======
  388. <script nomodule crossorigin id="vite-legacy-polyfill" src="./polyfills-legacy-8e22e21e-1731319840132.js"></script>
  389. <script nomodule crossorigin id="vite-legacy-entry" data-src="./index-legacy-bb6bf184-1731319840132.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  390. </body>
  391. </html>
  392. >>>>>>> 2c7dbadb7e8c85b0a926f9a8f7e7d35b1c11084a