index.html 10 KB

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