instrument.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport"
  6. content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
  7. <title>管乐迷</title>
  8. <link rel="icon" href="/favicon.ico?v=1" />
  9. <script src="/flexible.js" charset="UTF-8"></script>
  10. <style>
  11. #loading {
  12. position: fixed;
  13. left: 50%;
  14. top: 50%;
  15. transform: translate(-50%, -50%);
  16. display: none;
  17. }
  18. #loading.show {
  19. display: block;
  20. }
  21. </style>
  22. <script>
  23. function _postMessage(data, callback) {
  24. const instance = window.COLEXIU || (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.COLEXIU)
  25. if (instance) {
  26. instance.postMessage(JSON.stringify(data))
  27. }
  28. }
  29. // APP的全屏loading动画
  30. if (!location.href.includes('iscurseplay=play') && !location.href.includes('isPreView=true') && !location.href.includes("simple-detail")) {
  31. _postMessage({
  32. api: 'cloudLoading',
  33. content: {
  34. show: true,
  35. type: 'fullscreen',
  36. },
  37. })
  38. }
  39. </script>
  40. </head>
  41. <body>
  42. <div id="app">
  43. <!-- <style>
  44. .firstLoading {
  45. position: fixed;
  46. left: 0;
  47. top: 0;
  48. right: 0;
  49. bottom: 0;
  50. width: 100%;
  51. height: 100%;
  52. min-width: 100vw;
  53. min-height: 100vh;
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: center;
  57. align-items: center;
  58. z-index: 10000;
  59. }
  60. .firstLoading .loadingBox {
  61. width: 27px;
  62. height: 27px;
  63. display: flex;
  64. justify-content: space-between;
  65. flex-wrap: wrap;
  66. align-content: space-between;
  67. margin-bottom: 24px;
  68. animation: rotate 1.5s linear infinite;
  69. }
  70. .firstLoading .loadingBox .loadingItem {
  71. width: 11px;
  72. height: 11px;
  73. border-radius: 50%;
  74. background: #06E7BE;
  75. opacity: 0.5;
  76. }
  77. .firstLoading .loadingBox .loadingItem:nth-child(2) {
  78. opacity: 1;
  79. }
  80. .firstLoading .loadingTip {
  81. font-size: 14px;
  82. color: #999;
  83. }
  84. @keyframes rotate {
  85. from {
  86. transform: rotate(0deg);
  87. }
  88. to {
  89. transform: rotate(360deg);
  90. }
  91. }
  92. </style>
  93. <div class="firstLoading">
  94. <div class="loadingBox">
  95. <div class="loadingItem"></div>
  96. <div class="loadingItem"></div>
  97. <div class="loadingItem"></div>
  98. <div class="loadingItem"></div>
  99. </div>
  100. <div class="loadingTip">资源加载中,请稍后…</div>
  101. </div> -->
  102. </div>
  103. <!-- <img id="loading" class="show" src="/loading.svg" alt="loading" /> -->
  104. <!-- <script>
  105. // 处理课堂乐器老师端打开听音练习时去掉加载动画
  106. if (location.href.indexOf('view-figner') >= 0 && location.href.indexOf('platform=pc') >= 0 && location.href.indexOf('linkSource=class') < 0 && !location.href.includes("simple-detail")) {
  107. var _loading = document.getElementById("loading");
  108. _loading && document.body.removeChild(_loading);
  109. }
  110. </script> -->
  111. <script type="module" src="/src/page-instrument/main.ts"></script>
  112. <!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
  113. <script>
  114. // VConsole will be exported to `window.VConsole` by default.
  115. var vConsole = new window.VConsole();
  116. </script> -->
  117. </body>
  118. </html>