|
@@ -1,5 +1,6 @@
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
<html lang="ZH-cn">
|
|
<html lang="ZH-cn">
|
|
|
|
+
|
|
<head>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" href="/orchestra-music-score/favicon.ico" />
|
|
<link rel="icon" href="/orchestra-music-score/favicon.ico" />
|
|
@@ -9,75 +10,63 @@
|
|
<script src="/orchestra-music-score/helpers/lottie.min.js"></script>
|
|
<script src="/orchestra-music-score/helpers/lottie.min.js"></script>
|
|
<link href="/orchestra-music-score/vant.css" rel="stylesheet">
|
|
<link href="/orchestra-music-score/vant.css" rel="stylesheet">
|
|
<script>
|
|
<script>
|
|
- function getBroswer(){
|
|
|
|
|
|
+ function getBroswer() {
|
|
var Sys = {};
|
|
var Sys = {};
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
var s;
|
|
var s;
|
|
(s = ua.match(/edge\/([\d.]+)/)) ? Sys.edge = s[1] :
|
|
(s = ua.match(/edge\/([\d.]+)/)) ? Sys.edge = s[1] :
|
|
- (s = ua.match(/rv:([\d.]+)\) like gecko/)) ? Sys.ie = s[1] :
|
|
|
|
- (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
|
|
|
|
- (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
|
|
|
|
- (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
|
|
|
|
- (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
|
|
|
|
- (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
|
|
|
|
|
|
+ (s = ua.match(/rv:([\d.]+)\) like gecko/)) ? Sys.ie = s[1] :
|
|
|
|
+ (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
|
|
|
|
+ (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
|
|
|
|
+ (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
|
|
|
|
+ (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
|
|
|
|
+ (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
|
|
|
|
|
|
- if (Sys.edge) return { broswer : "Edge", version : Sys.edge };
|
|
|
|
- if (Sys.ie) return { broswer : "IE", version : Sys.ie };
|
|
|
|
- if (Sys.firefox) return { broswer : "Firefox", version : Sys.firefox };
|
|
|
|
- if (Sys.chrome) return { broswer : "Chrome", version : Sys.chrome };
|
|
|
|
- if (Sys.opera) return { broswer : "Opera", version : Sys.opera };
|
|
|
|
- if (Sys.safari) return { broswer : "Safari", version : Sys.safari };
|
|
|
|
|
|
+ if (Sys.edge) return { broswer: "Edge", version: Sys.edge };
|
|
|
|
+ if (Sys.ie) return { broswer: "IE", version: Sys.ie };
|
|
|
|
+ if (Sys.firefox) return { broswer: "Firefox", version: Sys.firefox };
|
|
|
|
+ if (Sys.chrome) return { broswer: "Chrome", version: Sys.chrome };
|
|
|
|
+ if (Sys.opera) return { broswer: "Opera", version: Sys.opera };
|
|
|
|
+ if (Sys.safari) return { broswer: "Safari", version: Sys.safari };
|
|
|
|
|
|
- return { broswer : "", version : "0" };
|
|
|
|
- }
|
|
|
|
- var broswer = getBroswer();
|
|
|
|
- window.addEventListener('DOMContentLoaded', function() {
|
|
|
|
- if (broswer.broswer === 'Chrome' && parseFloat(broswer.version) <= 50) {
|
|
|
|
- document.getElementById('update').className = 'show'
|
|
|
|
- document.getElementById('loading').className = ''
|
|
|
|
|
|
+ return { broswer: "", version: "0" };
|
|
}
|
|
}
|
|
- })
|
|
|
|
- // 获取token
|
|
|
|
- const instance = window.ORCHESTRA || window.webkit?.messageHandlers?.ORCHESTRA
|
|
|
|
- if (instance) {
|
|
|
|
- const sendData = { api: 'getToken', content: { uuid: '' + Date.now() + Math.floor(Math.random() * 1000000) } }
|
|
|
|
- function setToken(evt) {
|
|
|
|
- window.removeEventListener('message', setToken)
|
|
|
|
- try {
|
|
|
|
- const data = typeof evt.data === "object" ? evt.data : JSON.parse(evt.data)
|
|
|
|
- if (data.api === 'getToken') {
|
|
|
|
- const token = `${data.content.tokenType} ${data.content.accessToken}`
|
|
|
|
- sessionStorage.setItem('Authorization', token)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } catch (error) { }
|
|
|
|
|
|
+ var broswer = getBroswer();
|
|
|
|
+ window.addEventListener('DOMContentLoaded', function () {
|
|
|
|
+ if (broswer.broswer === 'Chrome' && parseFloat(broswer.version) <= 50) {
|
|
|
|
+ document.getElementById('update').className = 'show'
|
|
|
|
+ document.getElementById('loading').className = ''
|
|
}
|
|
}
|
|
- window.addEventListener('message', setToken)
|
|
|
|
- instance.postMessage(JSON.stringify(sendData))
|
|
|
|
- }
|
|
|
|
|
|
+ })
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|
|
- #lottieWeb {
|
|
|
|
|
|
+ #lottieWebWrap{
|
|
position: fixed;
|
|
position: fixed;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100vw;
|
|
|
|
+ height: 100vh;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
z-index: 100;
|
|
z-index: 100;
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- width: 100Px;
|
|
|
|
- height: 100Px;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
transition: opacity .3s;
|
|
transition: opacity .3s;
|
|
}
|
|
}
|
|
|
|
+ #lottieWeb {
|
|
|
|
+ width: 100Px;
|
|
|
|
+ height: 100Px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|
|
- <script type="module" crossorigin src="/orchestra-music-score/assets/colexiu-report.d01854fa.js"></script>
|
|
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/App.d80db280.js">
|
|
|
|
|
|
+ <script type="module" crossorigin src="/orchestra-music-score/assets/colexiu-report.c5424c2c.js"></script>
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/App.35c29006.js">
|
|
<link rel="modulepreload" href="/orchestra-music-score/assets/lib-flexible.08f197e6.js">
|
|
<link rel="modulepreload" href="/orchestra-music-score/assets/lib-flexible.08f197e6.js">
|
|
<link rel="modulepreload" href="/orchestra-music-score/assets/music.b35eb5be.js">
|
|
<link rel="modulepreload" href="/orchestra-music-score/assets/music.b35eb5be.js">
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/index.6ad04322.js">
|
|
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/index.57bf5c2f.js">
|
|
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/index.aafc6a19.js">
|
|
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/index.fe34475b.js">
|
|
|
|
- <link rel="modulepreload" href="/orchestra-music-score/assets/state.6510c06b.js">
|
|
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/index.bc7467d5.js">
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/index.fc75b229.js">
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/index.e42cbb2f.js">
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/index.14607258.js">
|
|
|
|
+ <link rel="modulepreload" href="/orchestra-music-score/assets/state.b88d0698.js">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/App.776bd3a4.css">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/App.776bd3a4.css">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/index.06f6a16d.css">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/index.06f6a16d.css">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/index.fba0bdd7.css">
|
|
<link rel="stylesheet" href="/orchestra-music-score/assets/index.fba0bdd7.css">
|
|
@@ -86,9 +75,12 @@
|
|
<script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
|
|
<script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
|
|
<script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above 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>
|
|
<script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above 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>
|
|
</head>
|
|
</head>
|
|
|
|
+
|
|
<body>
|
|
<body>
|
|
<div id="app"></div>
|
|
<div id="app"></div>
|
|
- <div id="lottieWeb"></div>
|
|
|
|
|
|
+ <div id="lottieWebWrap">
|
|
|
|
+ <div id="lottieWeb"></div>
|
|
|
|
+ </div>
|
|
<script>
|
|
<script>
|
|
lottie.loadAnimation({
|
|
lottie.loadAnimation({
|
|
container: document.getElementById('lottieWeb'),
|
|
container: document.getElementById('lottieWeb'),
|
|
@@ -100,7 +92,7 @@
|
|
path: '/orchestra-music-score/loading.json'
|
|
path: '/orchestra-music-score/loading.json'
|
|
});
|
|
});
|
|
window.addEventListener('load', function () {
|
|
window.addEventListener('load', function () {
|
|
- const loadingEle = document.getElementById('lottieWeb')
|
|
|
|
|
|
+ const loadingEle = document.getElementById('lottieWebWrap')
|
|
loadingEle.style.opacity = '0'
|
|
loadingEle.style.opacity = '0'
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
loadingEle.style.display = 'none'
|
|
loadingEle.style.display = 'none'
|
|
@@ -110,6 +102,7 @@
|
|
|
|
|
|
<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>!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 id="vite-legacy-polyfill" src="/orchestra-music-score/assets/polyfills-legacy.93313b91.js"></script>
|
|
<script nomodule id="vite-legacy-polyfill" src="/orchestra-music-score/assets/polyfills-legacy.93313b91.js"></script>
|
|
- <script nomodule id="vite-legacy-entry" data-src="/orchestra-music-score/assets/colexiu-report-legacy.17d759e2.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
|
|
|
|
+ <script nomodule id="vite-legacy-entry" data-src="/orchestra-music-score/assets/colexiu-report-legacy.0f43b21e.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
</body>
|
|
</body>
|
|
-</html>
|
|
|
|
|
|
+
|
|
|
|
+</html>
|