index.html 9.8 KB

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