index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="ZH-cn">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  6. <title>管乐团云教练</title>
  7. <meta name="description" content="管乐团APP,器乐学习的不二选择" />
  8. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
  9. <script src="/helpers/lottie.min.js"></script>
  10. <link href="/vant.css" rel="stylesheet">
  11. <script>
  12. if (window.navigator && navigator.serviceWorker) {
  13. navigator.serviceWorker.getRegistrations().then(function (registrations) {
  14. for (let registration of registrations) {
  15. registration.unregister()
  16. }
  17. })
  18. }
  19. </script>
  20. <style>
  21. #lottieWeb {
  22. position: fixed;
  23. z-index: 100;
  24. top: 50%;
  25. left: 50%;
  26. transform: translate(-50%, -50%);
  27. pointer-events: none;
  28. transition: opacity .3s;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div id="app"></div>
  34. <div id="lottieWeb"></div>
  35. <script>
  36. lottie.loadAnimation({
  37. container: document.getElementById('lottieWeb'),
  38. renderer: 'svg',
  39. width: '30px',
  40. height: '30px',
  41. loop: true,
  42. autoplay: true,
  43. path: '/loading.json'
  44. });
  45. window.addEventListener('load', function () {
  46. const loadingEle = document.getElementById('lottieWeb')
  47. loadingEle.style.opacity = '0'
  48. setTimeout(() => {
  49. loadingEle.style.display = 'none'
  50. }, 1000)
  51. })
  52. </script>
  53. <script type="module" src="/src/subpages/colexiu/main.ts"></script>
  54. </body>
  55. </html>