index.html 10 KB

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