index.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <!DOCTYPE html>
  2. <html lang="zh_CN" id="htmlRoot">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  8. <title><%= title %></title>
  9. <!-- <link rel="icon" href="/logo.png" /> -->
  10. <!-- 全局配置 -->
  11. <script>
  12. window._CONFIG = {};
  13. </script>
  14. <script src="/js/liveplayer-lib.min.js"></script>
  15. </head>
  16. <body style="background-color: #00144b">
  17. <script>
  18. (() => {
  19. var htmlRoot = document.getElementById('htmlRoot');
  20. var theme = window.localStorage.getItem('__APP__DARK__MODE__');
  21. if (htmlRoot && theme) {
  22. htmlRoot.setAttribute('data-theme', theme);
  23. theme = htmlRoot = null;
  24. }
  25. })();
  26. </script>
  27. <div id="app">
  28. <style>
  29. html[data-theme='dark'] .app-loading {
  30. background-color: #2c344a;
  31. }
  32. html[data-theme='dark'] .app-loading .app-loading-title {
  33. color: rgba(255, 255, 255, 0.85);
  34. }
  35. .app-loading {
  36. display: flex;
  37. width: 100%;
  38. height: 100%;
  39. justify-content: center;
  40. align-items: center;
  41. flex-direction: column;
  42. /* background-color: #f4f7f9; */
  43. background-image: url('./src/assets/images/vent/loading-bg.png');
  44. background-size: cover;
  45. background-repeat: no-repeat;
  46. background-color: #00144b;
  47. }
  48. .app-loading .app-loading-wrap {
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. display: flex;
  53. -webkit-transform: translate3d(-50%, -50%, 0);
  54. transform: translate3d(-50%, -50%, 0);
  55. justify-content: center;
  56. align-items: center;
  57. flex-direction: column;
  58. }
  59. .app-loading .dots {
  60. display: flex;
  61. padding: 98px;
  62. justify-content: center;
  63. align-items: center;
  64. }
  65. .app-loading .app-loading-title {
  66. display: flex;
  67. margin-top: 30px;
  68. font-size: 30px;
  69. color: rgba(255, 255, 255, 0.85);
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. .app-loading .app-loading-logo {
  74. display: block;
  75. width: 90px;
  76. margin: 0 auto;
  77. margin-bottom: 20px;
  78. }
  79. .dot {
  80. position: relative;
  81. display: inline-block;
  82. width: 48px;
  83. height: 48px;
  84. margin-top: 30px;
  85. font-size: 32px;
  86. transform: rotate(45deg);
  87. box-sizing: border-box;
  88. animation: antRotate 1.2s infinite linear;
  89. }
  90. .dot i {
  91. position: absolute;
  92. display: block;
  93. width: 20px;
  94. height: 20px;
  95. background-color: #0065cc;
  96. border-radius: 100%;
  97. opacity: 0.3;
  98. transform: scale(0.75);
  99. animation: antSpinMove 1s infinite linear alternate;
  100. transform-origin: 50% 50%;
  101. }
  102. .dot i:nth-child(1) {
  103. top: 0;
  104. left: 0;
  105. }
  106. .dot i:nth-child(2) {
  107. top: 0;
  108. right: 0;
  109. -webkit-animation-delay: 0.4s;
  110. animation-delay: 0.4s;
  111. }
  112. .dot i:nth-child(3) {
  113. right: 0;
  114. bottom: 0;
  115. -webkit-animation-delay: 0.8s;
  116. animation-delay: 0.8s;
  117. }
  118. .dot i:nth-child(4) {
  119. bottom: 0;
  120. left: 0;
  121. -webkit-animation-delay: 1.2s;
  122. animation-delay: 1.2s;
  123. }
  124. @keyframes antRotate {
  125. to {
  126. -webkit-transform: rotate(405deg);
  127. transform: rotate(405deg);
  128. }
  129. }
  130. @-webkit-keyframes antRotate {
  131. to {
  132. -webkit-transform: rotate(405deg);
  133. transform: rotate(405deg);
  134. }
  135. }
  136. @keyframes antSpinMove {
  137. to {
  138. opacity: 1;
  139. }
  140. }
  141. @-webkit-keyframes antSpinMove {
  142. to {
  143. opacity: 1;
  144. }
  145. }
  146. #cssLoader1.main-wrap .child-common {
  147. width: 8px;
  148. height: 50px;
  149. margin-right: 5px;
  150. /* margin-right: 3px; */
  151. background-color: #3df7ff;
  152. -webkit-animation: animate1 1s infinite;
  153. animation: animate1 1s infinite;
  154. float: left;
  155. }
  156. #cssLoader1.main-wrap .child1 {
  157. margin-right: 5px;
  158. }
  159. #cssLoader1.main-wrap .child10 {
  160. -webkit-animation-delay: 0.9s;
  161. animation-delay: 0.9s;
  162. }
  163. #cssLoader1.main-wrap .child9 {
  164. -webkit-animation-delay: 0.8s;
  165. animation-delay: 0.8s;
  166. }
  167. #cssLoader1.main-wrap .child8 {
  168. -webkit-animation-delay: 0.7s;
  169. animation-delay: 0.7s;
  170. }
  171. #cssLoader1.main-wrap .child7 {
  172. -webkit-animation-delay: 0.6s;
  173. animation-delay: 0.6s;
  174. }
  175. #cssLoader1.main-wrap .child6 {
  176. -webkit-animation-delay: 0.5s;
  177. animation-delay: 0.5s;
  178. }
  179. #cssLoader1.main-wrap .child5 {
  180. -webkit-animation-delay: 0.4s;
  181. animation-delay: 0.4s;
  182. }
  183. #cssLoader1.main-wrap .child4 {
  184. -webkit-animation-delay: 0.3s;
  185. animation-delay: 0.3s;
  186. }
  187. #cssLoader1.main-wrap .child3 {
  188. -webkit-animation-delay: 0.2s;
  189. animation-delay: 0.2s;
  190. }
  191. #cssLoader1.main-wrap .child2 {
  192. -webkit-animation-delay: 0.1s;
  193. animation-delay: 0.1s;
  194. }
  195. @-webkit-keyframes animate1 {
  196. 50% {
  197. -ms-transform: scaleY(0);
  198. -webkit-transform: scaleY(0);
  199. transform: scaleY(0);
  200. }
  201. }
  202. @keyframes animate1 {
  203. 50% {
  204. -ms-transform: scaleY(0);
  205. -webkit-transform: scaleY(0);
  206. transform: scaleY(0);
  207. }
  208. }
  209. /*loader1 css ends*/
  210. cssLoader17 {
  211. position: relative;
  212. width: 2.5em;
  213. height: 2.5em;
  214. transform: rotate(165deg);
  215. }
  216. .cssLoader17:before,
  217. .cssLoader17:after {
  218. content: '';
  219. position: absolute;
  220. top: 50%;
  221. left: 50%;
  222. display: block;
  223. width: 0.5em;
  224. height: 0.5em;
  225. border-radius: 0.25em;
  226. transform: translate(-50%, -50%);
  227. }
  228. .cssLoader17:before {
  229. animation: before 2s infinite;
  230. }
  231. .cssLoader17:after {
  232. animation: after 2s infinite;
  233. }
  234. @keyframes before {
  235. 0% {
  236. width: 0.5em;
  237. box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  238. }
  239. 35% {
  240. width: 2.5em;
  241. box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
  242. }
  243. 70% {
  244. width: 0.5em;
  245. box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
  246. }
  247. 100% {
  248. box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  249. }
  250. }
  251. @keyframes after {
  252. 0% {
  253. height: 0.5em;
  254. box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  255. }
  256. 35% {
  257. height: 2.5em;
  258. box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
  259. }
  260. 70% {
  261. height: 0.5em;
  262. box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
  263. }
  264. 100% {
  265. box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  266. }
  267. }
  268. </style>
  269. <div class="app-loading">
  270. <div class="app-loading-wrap">
  271. <!-- <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" /> -->
  272. <!-- <div class="app-loading-dots">
  273. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  274. </div> -->
  275. <div id="cssLoader1" class="main-wrap">
  276. <div class="child-common child1"></div>
  277. <div class="child-common child2"></div>
  278. <div class="child-common child3"></div>
  279. <div class="child-common child4"></div>
  280. <div class="child-common child5"></div>
  281. <div class="child-common child6"></div>
  282. <div class="child-common child7"></div>
  283. <div class="child-common child8"></div>
  284. <div class="child-common child9"></div>
  285. <div class="child-common child10"></div>
  286. </div>
  287. <div class="app-loading-title"><%= title %></div>
  288. </div>
  289. </div>
  290. </div>
  291. <script type="module" src="/src/main.ts"></script>
  292. <script type="module" src="/src/utils/threejs/main.worker.ts"></script>
  293. </body>
  294. </html>