1
0

index.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <!DOCTYPE html>
  2. <html>
  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, maximum-scale=1, user-scalable=no">
  8. <link rel="icon" href="/favicon.ico">
  9. <script src="/js/jessibuca-pro/jessibuca-pro.js"></script>
  10. <script type="text/javascript" src="/js/ZLMRTCClient.js"></script>
  11. <script type="text/javascript" src="/js/EasyWasmPlayer.js"></script>
  12. <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2cd74056ead5ced85589e398b621c955"></script>
  13. <script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?2742bc99fd6c8a9569359b4d583cf507";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s); })();</script>
  14. <title></title>
  15. <meta name="description" content="让连接更稳定,简单易用,更适合中小企业和个人学习使用。 适用于智能家居、智慧办公、智慧社区、工业控制、农业监测、水利监测等。" />
  16. <meta name="keywords" content="物联网,工业物联,IOT,modbus,GB28181" />
  17. <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  18. <style>
  19. html,
  20. body,
  21. #app {
  22. height: 100%;
  23. margin: 0px;
  24. padding: 0px;
  25. }
  26. .chromeframe {
  27. margin: 0.2em 0;
  28. background: #ccc;
  29. color: #000;
  30. padding: 0.2em 0;
  31. }
  32. #loader-wrapper {
  33. position: fixed;
  34. top: 0;
  35. left: 0;
  36. width: 100%;
  37. height: 100%;
  38. z-index: 999999;
  39. }
  40. #loader {
  41. display: block;
  42. position: relative;
  43. left: 50%;
  44. top: 50%;
  45. width: 150px;
  46. height: 150px;
  47. margin: -75px 0 0 -75px;
  48. border-radius: 50%;
  49. border: 3px solid transparent;
  50. border-top-color: #FFF;
  51. -webkit-animation: spin 2s linear infinite;
  52. -ms-animation: spin 2s linear infinite;
  53. -moz-animation: spin 2s linear infinite;
  54. -o-animation: spin 2s linear infinite;
  55. animation: spin 2s linear infinite;
  56. z-index: 1001;
  57. }
  58. #loader:before {
  59. content: "";
  60. position: absolute;
  61. top: 5px;
  62. left: 5px;
  63. right: 5px;
  64. bottom: 5px;
  65. border-radius: 50%;
  66. border: 3px solid transparent;
  67. border-top-color: #FFF;
  68. -webkit-animation: spin 3s linear infinite;
  69. -moz-animation: spin 3s linear infinite;
  70. -o-animation: spin 3s linear infinite;
  71. -ms-animation: spin 3s linear infinite;
  72. animation: spin 3s linear infinite;
  73. }
  74. #loader:after {
  75. content: "";
  76. position: absolute;
  77. top: 15px;
  78. left: 15px;
  79. right: 15px;
  80. bottom: 15px;
  81. border-radius: 50%;
  82. border: 3px solid transparent;
  83. border-top-color: #FFF;
  84. -moz-animation: spin 1.5s linear infinite;
  85. -o-animation: spin 1.5s linear infinite;
  86. -ms-animation: spin 1.5s linear infinite;
  87. -webkit-animation: spin 1.5s linear infinite;
  88. animation: spin 1.5s linear infinite;
  89. }
  90. @-webkit-keyframes spin {
  91. 0% {
  92. -webkit-transform: rotate(0deg);
  93. -ms-transform: rotate(0deg);
  94. transform: rotate(0deg);
  95. }
  96. 100% {
  97. -webkit-transform: rotate(360deg);
  98. -ms-transform: rotate(360deg);
  99. transform: rotate(360deg);
  100. }
  101. }
  102. @keyframes spin {
  103. 0% {
  104. -webkit-transform: rotate(0deg);
  105. -ms-transform: rotate(0deg);
  106. transform: rotate(0deg);
  107. }
  108. 100% {
  109. -webkit-transform: rotate(360deg);
  110. -ms-transform: rotate(360deg);
  111. transform: rotate(360deg);
  112. }
  113. }
  114. #loader-wrapper .loader-section {
  115. position: fixed;
  116. top: 0;
  117. width: 51%;
  118. height: 100%;
  119. background: #7171C6;
  120. z-index: 1000;
  121. -webkit-transform: translateX(0);
  122. -ms-transform: translateX(0);
  123. transform: translateX(0);
  124. }
  125. #loader-wrapper .loader-section.section-left {
  126. left: 0;
  127. }
  128. #loader-wrapper .loader-section.section-right {
  129. right: 0;
  130. }
  131. .loaded #loader-wrapper .loader-section.section-left {
  132. -webkit-transform: translateX(-100%);
  133. -ms-transform: translateX(-100%);
  134. transform: translateX(-100%);
  135. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  136. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  137. }
  138. .loaded #loader-wrapper .loader-section.section-right {
  139. -webkit-transform: translateX(100%);
  140. -ms-transform: translateX(100%);
  141. transform: translateX(100%);
  142. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  143. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  144. }
  145. .loaded #loader {
  146. opacity: 0;
  147. -webkit-transition: all 0.3s ease-out;
  148. transition: all 0.3s ease-out;
  149. }
  150. .loaded #loader-wrapper {
  151. visibility: hidden;
  152. -webkit-transform: translateY(-100%);
  153. -ms-transform: translateY(-100%);
  154. transform: translateY(-100%);
  155. -webkit-transition: all 0.3s 1s ease-out;
  156. transition: all 0.3s 1s ease-out;
  157. }
  158. .no-js #loader-wrapper {
  159. display: none;
  160. }
  161. .no-js h1 {
  162. color: #222222;
  163. }
  164. #loader-wrapper .load_title {
  165. font-family: 'Open Sans';
  166. color: #FFF;
  167. font-size: 19px;
  168. width: 100%;
  169. text-align: center;
  170. z-index: 9999999999999;
  171. position: absolute;
  172. top: 60%;
  173. opacity: 1;
  174. line-height: 30px;
  175. }
  176. #loader-wrapper .load_title span {
  177. font-weight: normal;
  178. font-style: italic;
  179. font-size: 13px;
  180. color: #FFF;
  181. opacity: 0.5;
  182. }
  183. </style>
  184. <script>
  185. function getPlatform(type) {
  186. let res = '';
  187. let ajax = new XMLHttpRequest();
  188. let url = ''
  189. if(window.location.hostname === '127.0.0.1' || window.location.hostname === 'localhost' || window.location.hostname.concat('192.168')) {
  190. // 开发环境
  191. url = '/dev-api/' + type
  192. } else {
  193. // 生产环境
  194. url = '/prod-api/' + type
  195. }
  196. ajax.onreadystatechange = function () {
  197. if (ajax.readyState===4 &&ajax.status===200) {
  198. let obj = JSON.parse(ajax.responseText)
  199. res = obj.platformName;
  200. } else {
  201. res = '物联网系统';
  202. }
  203. }
  204. ajax.open('get', url, false);
  205. ajax.send(null);
  206. return res;
  207. }
  208. window.SYS_TITLE = getPlatform("platformName");
  209. document.title = window.SYS_TITLE;
  210. </script>
  211. </head>
  212. <body>
  213. <div id="app">
  214. <div id="loader-wrapper">
  215. <div id="loader"></div>
  216. <div class="loader-section section-left"></div>
  217. <div class="loader-section section-right"></div>
  218. <div class="load_title">正在加载系统资源,请耐心等待</div>
  219. </div>
  220. </div>
  221. <script type="module" src="/src/main.js"></script>
  222. </body>
  223. </html>