12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
- <title>管乐团云教练</title>
- <script>
- function _postMessage(data, callback) {
- const instance = window.ORCHESTRA || (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.ORCHESTRA)
- if (instance) {
- console.log('h5发送开启全屏loading')
- instance.postMessage(JSON.stringify(data))
- }
- }
- _postMessage({
- api: 'cloudLoading',
- content: {
- show: true,
- type: 'fullscreen',
- },
- })
- </script>
- <!-- <link rel="icon" href="/favicon.ico" /> -->
- <script src="/flexible.js" charset="UTF-8"></script>
- <script src="/helpers/lottie.min.js" charset="UTF-8"></script>
- <style>
- #loading {
- position: fixed;
- z-index: 100;
- top: 50%;
- left: 50%;
- width: 100Px;
- height: 100Px;
- transform: translate(-50%, -50%);
- pointer-events: none;
- transition: opacity .3s;
- }
- </style>
- </head>
- <body>
- <div id="app"></div>
- <div id="loading"></div>
- <script>
- lottie.loadAnimation({
- container: document.getElementById('loading'),
- renderer: 'svg',
- width: '30px',
- height: '30px',
- loop: true,
- autoplay: true,
- path: './loading.json'
- });
- </script>
- <script type="module" src="/src/page-orchestra/main.ts"></script>
- </body>
- </html>
|