index.html 10 KB

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