index.html 10 KB

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