index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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" id="faviconIcon" href="/logo.png" />
  10. <!-- 全局配置 -->
  11. <script src="/js/config.js"></script>
  12. <!-- [perf-base-v1] defer 避免阻塞首屏渲染,播放器库在用到前已就绪 -->
  13. <script defer src="/js/liveplayer-lib.min.js"></script>
  14. <script src="/js/libs/adapter.min.js"></script>
  15. <script src="/js/webrtcstreamer.js"></script>
  16. <!-- [perf-base-v1] 卡1: OnlyOffice api.js 改为打开文档编辑器时按需加载(见 src/utils/onlyOffice.ts),此处不再静态/动态注入 -->
  17. </head>
  18. <body>
  19. <script>
  20. (() => {
  21. var htmlRoot = document.getElementById('htmlRoot');
  22. var theme = window.localStorage.getItem('__APP__DARK__MODE__');
  23. if (htmlRoot && theme) {
  24. htmlRoot.setAttribute('data-theme', theme);
  25. theme = htmlRoot = null;
  26. }
  27. })();
  28. </script>
  29. <div id="app">
  30. <style lang="less">
  31. html[data-theme='dark'] .app-loading {
  32. background-color: #2c344a;
  33. }
  34. html[data-theme='dark'] .app-loading .app-loading-title {
  35. color: rgba(255, 255, 255, 0.85);
  36. }
  37. html[data-theme='deepblue'] .app-loading {
  38. background-color: none;
  39. background-image: url('./src/assets/images/themify/deepblue/loading-bg.png');
  40. }
  41. body {
  42. background-color: var(--vent-base-color);
  43. }
  44. .app-loading {
  45. display: flex;
  46. width: 100%;
  47. height: 100%;
  48. justify-content: center;
  49. align-items: center;
  50. flex-direction: column;
  51. /* background-color: #f4f7f9; */
  52. /* [perf-base-v1] 改引用 public 下静态路径,原 ./src/assets/... 生产构建后 404 */
  53. background-image: url('./vent/loading-bg.png');
  54. background-size: cover;
  55. background-repeat: no-repeat;
  56. background-color: var(--vent-base-color);
  57. }
  58. .app-loading .app-loading-wrap {
  59. position: absolute;
  60. top: 50%;
  61. left: 50%;
  62. display: flex;
  63. -webkit-transform: translate3d(-50%, -50%, 0);
  64. transform: translate3d(-50%, -50%, 0);
  65. justify-content: center;
  66. align-items: center;
  67. flex-direction: column;
  68. }
  69. .app-loading .dots {
  70. display: flex;
  71. padding: 98px;
  72. justify-content: center;
  73. align-items: center;
  74. }
  75. .app-loading .app-loading-title {
  76. display: flex;
  77. margin-top: 30px;
  78. font-size: 30px;
  79. color: rgba(255, 255, 255, 0.85);
  80. justify-content: center;
  81. align-items: center;
  82. }
  83. .app-loading .app-loading-logo {
  84. display: block;
  85. width: 90px;
  86. margin: 0 auto;
  87. margin-bottom: 20px;
  88. }
  89. .dot {
  90. position: relative;
  91. display: inline-block;
  92. width: 48px;
  93. height: 48px;
  94. margin-top: 30px;
  95. font-size: 32px;
  96. transform: rotate(45deg);
  97. box-sizing: border-box;
  98. animation: antRotate 1.2s infinite linear;
  99. }
  100. .dot i {
  101. position: absolute;
  102. display: block;
  103. width: 20px;
  104. height: 20px;
  105. background-color: #0065cc;
  106. border-radius: 100%;
  107. opacity: 0.3;
  108. transform: scale(0.75);
  109. animation: antSpinMove 1s infinite linear alternate;
  110. transform-origin: 50% 50%;
  111. }
  112. .dot i:nth-child(1) {
  113. top: 0;
  114. left: 0;
  115. }
  116. .dot i:nth-child(2) {
  117. top: 0;
  118. right: 0;
  119. -webkit-animation-delay: 0.4s;
  120. animation-delay: 0.4s;
  121. }
  122. .dot i:nth-child(3) {
  123. right: 0;
  124. bottom: 0;
  125. -webkit-animation-delay: 0.8s;
  126. animation-delay: 0.8s;
  127. }
  128. .dot i:nth-child(4) {
  129. bottom: 0;
  130. left: 0;
  131. -webkit-animation-delay: 1.2s;
  132. animation-delay: 1.2s;
  133. }
  134. @keyframes antRotate {
  135. to {
  136. -webkit-transform: rotate(405deg);
  137. transform: rotate(405deg);
  138. }
  139. }
  140. @-webkit-keyframes antRotate {
  141. to {
  142. -webkit-transform: rotate(405deg);
  143. transform: rotate(405deg);
  144. }
  145. }
  146. @keyframes antSpinMove {
  147. to {
  148. opacity: 1;
  149. }
  150. }
  151. @-webkit-keyframes antSpinMove {
  152. to {
  153. opacity: 1;
  154. }
  155. }
  156. #cssLoader1.main-wrap .child-common {
  157. width: 8px;
  158. height: 50px;
  159. margin-right: 5px;
  160. /* margin-right: 3px; */
  161. background-color: #3df7ff;
  162. -webkit-animation: animate1 1s infinite;
  163. animation: animate1 1s infinite;
  164. float: left;
  165. }
  166. #cssLoader1.main-wrap .child1 {
  167. margin-right: 5px;
  168. }
  169. #cssLoader1.main-wrap .child10 {
  170. -webkit-animation-delay: 0.9s;
  171. animation-delay: 0.9s;
  172. }
  173. #cssLoader1.main-wrap .child9 {
  174. -webkit-animation-delay: 0.8s;
  175. animation-delay: 0.8s;
  176. }
  177. #cssLoader1.main-wrap .child8 {
  178. -webkit-animation-delay: 0.7s;
  179. animation-delay: 0.7s;
  180. }
  181. #cssLoader1.main-wrap .child7 {
  182. -webkit-animation-delay: 0.6s;
  183. animation-delay: 0.6s;
  184. }
  185. #cssLoader1.main-wrap .child6 {
  186. -webkit-animation-delay: 0.5s;
  187. animation-delay: 0.5s;
  188. }
  189. #cssLoader1.main-wrap .child5 {
  190. -webkit-animation-delay: 0.4s;
  191. animation-delay: 0.4s;
  192. }
  193. #cssLoader1.main-wrap .child4 {
  194. -webkit-animation-delay: 0.3s;
  195. animation-delay: 0.3s;
  196. }
  197. #cssLoader1.main-wrap .child3 {
  198. -webkit-animation-delay: 0.2s;
  199. animation-delay: 0.2s;
  200. }
  201. #cssLoader1.main-wrap .child2 {
  202. -webkit-animation-delay: 0.1s;
  203. animation-delay: 0.1s;
  204. }
  205. @-webkit-keyframes animate1 {
  206. 50% {
  207. -ms-transform: scaleY(0);
  208. -webkit-transform: scaleY(0);
  209. transform: scaleY(0);
  210. }
  211. }
  212. @keyframes animate1 {
  213. 50% {
  214. -ms-transform: scaleY(0);
  215. -webkit-transform: scaleY(0);
  216. transform: scaleY(0);
  217. }
  218. }
  219. /*loader1 css ends*/
  220. cssLoader17 {
  221. position: relative;
  222. width: 2.5em;
  223. height: 2.5em;
  224. transform: rotate(165deg);
  225. }
  226. .cssLoader17:before,
  227. .cssLoader17:after {
  228. content: '';
  229. position: absolute;
  230. top: 50%;
  231. left: 50%;
  232. display: block;
  233. width: 0.5em;
  234. height: 0.5em;
  235. border-radius: 0.25em;
  236. transform: translate(-50%, -50%);
  237. }
  238. .cssLoader17:before {
  239. animation: before 2s infinite;
  240. }
  241. .cssLoader17:after {
  242. animation: after 2s infinite;
  243. }
  244. @keyframes before {
  245. 0% {
  246. width: 0.5em;
  247. box-shadow:
  248. 1em -0.5em rgba(225, 20, 98, 0.75),
  249. -1em 0.5em rgba(111, 202, 220, 0.75);
  250. }
  251. 35% {
  252. width: 2.5em;
  253. box-shadow:
  254. 0 -0.5em rgba(225, 20, 98, 0.75),
  255. 0 0.5em rgba(111, 202, 220, 0.75);
  256. }
  257. 70% {
  258. width: 0.5em;
  259. box-shadow:
  260. -1em -0.5em rgba(225, 20, 98, 0.75),
  261. 1em 0.5em rgba(111, 202, 220, 0.75);
  262. }
  263. 100% {
  264. box-shadow:
  265. 1em -0.5em rgba(225, 20, 98, 0.75),
  266. -1em 0.5em rgba(111, 202, 220, 0.75);
  267. }
  268. }
  269. @keyframes after {
  270. 0% {
  271. height: 0.5em;
  272. box-shadow:
  273. 0.5em 1em rgba(61, 184, 143, 0.75),
  274. -0.5em -1em rgba(233, 169, 32, 0.75);
  275. }
  276. 35% {
  277. height: 2.5em;
  278. box-shadow:
  279. 0.5em 0 rgba(61, 184, 143, 0.75),
  280. -0.5em 0 rgba(233, 169, 32, 0.75);
  281. }
  282. 70% {
  283. height: 0.5em;
  284. box-shadow:
  285. 0.5em -1em rgba(61, 184, 143, 0.75),
  286. -0.5em 1em rgba(233, 169, 32, 0.75);
  287. }
  288. 100% {
  289. box-shadow:
  290. 0.5em 1em rgba(61, 184, 143, 0.75),
  291. -0.5em -1em rgba(233, 169, 32, 0.75);
  292. }
  293. }
  294. </style>
  295. <div class="app-loading">
  296. <div class="app-loading-wrap">
  297. <!-- <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" /> -->
  298. <!-- <div class="app-loading-dots">
  299. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  300. </div> -->
  301. <div id="cssLoader1" class="main-wrap">
  302. <div class="child-common child1"></div>
  303. <div class="child-common child2"></div>
  304. <div class="child-common child3"></div>
  305. <div class="child-common child4"></div>
  306. <div class="child-common child5"></div>
  307. <div class="child-common child6"></div>
  308. <div class="child-common child7"></div>
  309. <div class="child-common child8"></div>
  310. <div class="child-common child9"></div>
  311. <div class="child-common child10"></div>
  312. </div>
  313. <div class="app-loading-title">正在加载</div>
  314. </div>
  315. </div>
  316. </div>
  317. <script type="module" src="/src/main.ts"></script>
  318. <script>
  319. // var _hmt = _hmt || [];
  320. // (function() {
  321. // var hm = document.createElement("script");
  322. // hm.src = "https://hm.baidu.com/hm.js?0febd9e3cacb3f627ddac64d52caac39";
  323. // var s = document.getElementsByTagName("script")[0];
  324. // s.parentNode.insertBefore(hm, s);
  325. // })();
  326. </script>
  327. </body>
  328. </html>