index.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
  9. <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> -->
  10. <!-- <script src="./public/socket.io.min.js" type="text/javascript"></script>
  11. <script src="./public/SIP.min.js" type="text/javascript"></script> -->
  12. <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/socket.io.min.js"></script>
  13. <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/SIP.min.js"></script>
  14. <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/hs-cti.es6.umd.prod.js"></script>
  15. <!-- <script src="http://static.fuxicarbon.com/hs-cti/hs-cti.es6.umd.prod.js" type="text/javascript"></script> -->
  16. <!-- <script type="text/javascript" src="/hs-cti.es6.umd.prod.js"></script> -->
  17. <link rel="icon" href="/favicon.ico">
  18. <title>佳木斯智能语音客服</title>
  19. <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  20. <script>
  21. // 检测是否为IE 11或更低版本
  22. function isIELowerThanEdge() {
  23. // 使用 @cc_on 来检查是否是IE浏览器,并排除Edge(Edge不支持条件编译)
  24. var isIE = /*@cc_on!@*/false || !!document.documentMode;
  25. // 如果是IE,再进一步检查版本号
  26. if (isIE) {
  27. // 对于IE 11, documentMode 是 11; 对于更早的版本,它会等于对应的版本号。
  28. // 对于IE 11, userAgent 中会有 "rv:11.0"。
  29. var ua = window.navigator.userAgent;
  30. var msieIndex = ua.indexOf('MSIE ');
  31. var tridentIndex = ua.indexOf('Trident/');
  32. var rvIndex = ua.indexOf('rv:');
  33. if (msieIndex > -1) {
  34. // 这是 IE 10 或更早版本
  35. return true;
  36. } else if (tridentIndex > -1 && rvIndex > -1) {
  37. // 这是 IE 11
  38. var version = parseInt(ua.substring(rvIndex + 3, ua.indexOf('.', rvIndex)), 10);
  39. return version <= 11;
  40. }
  41. }
  42. return false;
  43. }
  44. // 如果是IE 11或更低版本,则重定向
  45. if (isIELowerThanEdge()) {
  46. window.location.href = '/html/ie.html';
  47. }
  48. </script>
  49. <style>
  50. html,
  51. body,
  52. #app {
  53. height: 100%;
  54. margin: 0px;
  55. padding: 0px;
  56. }
  57. .chromeframe {
  58. margin: 0.2em 0;
  59. background: #ccc;
  60. color: #000;
  61. padding: 0.2em 0;
  62. }
  63. #loader-wrapper {
  64. position: fixed;
  65. top: 0;
  66. left: 0;
  67. width: 100%;
  68. height: 100%;
  69. z-index: 999999;
  70. }
  71. #loader {
  72. display: block;
  73. position: relative;
  74. left: 50%;
  75. top: 50%;
  76. width: 150px;
  77. height: 150px;
  78. margin: -75px 0 0 -75px;
  79. border-radius: 50%;
  80. border: 3px solid transparent;
  81. border-top-color: #FFF;
  82. -webkit-animation: spin 2s linear infinite;
  83. -ms-animation: spin 2s linear infinite;
  84. -moz-animation: spin 2s linear infinite;
  85. -o-animation: spin 2s linear infinite;
  86. animation: spin 2s linear infinite;
  87. z-index: 1001;
  88. }
  89. #loader:before {
  90. content: "";
  91. position: absolute;
  92. top: 5px;
  93. left: 5px;
  94. right: 5px;
  95. bottom: 5px;
  96. border-radius: 50%;
  97. border: 3px solid transparent;
  98. border-top-color: #FFF;
  99. -webkit-animation: spin 3s linear infinite;
  100. -moz-animation: spin 3s linear infinite;
  101. -o-animation: spin 3s linear infinite;
  102. -ms-animation: spin 3s linear infinite;
  103. animation: spin 3s linear infinite;
  104. }
  105. #loader:after {
  106. content: "";
  107. position: absolute;
  108. top: 15px;
  109. left: 15px;
  110. right: 15px;
  111. bottom: 15px;
  112. border-radius: 50%;
  113. border: 3px solid transparent;
  114. border-top-color: #FFF;
  115. -moz-animation: spin 1.5s linear infinite;
  116. -o-animation: spin 1.5s linear infinite;
  117. -ms-animation: spin 1.5s linear infinite;
  118. -webkit-animation: spin 1.5s linear infinite;
  119. animation: spin 1.5s linear infinite;
  120. }
  121. @-webkit-keyframes spin {
  122. 0% {
  123. -webkit-transform: rotate(0deg);
  124. -ms-transform: rotate(0deg);
  125. transform: rotate(0deg);
  126. }
  127. 100% {
  128. -webkit-transform: rotate(360deg);
  129. -ms-transform: rotate(360deg);
  130. transform: rotate(360deg);
  131. }
  132. }
  133. @keyframes spin {
  134. 0% {
  135. -webkit-transform: rotate(0deg);
  136. -ms-transform: rotate(0deg);
  137. transform: rotate(0deg);
  138. }
  139. 100% {
  140. -webkit-transform: rotate(360deg);
  141. -ms-transform: rotate(360deg);
  142. transform: rotate(360deg);
  143. }
  144. }
  145. #loader-wrapper .loader-section {
  146. position: fixed;
  147. top: 0;
  148. width: 51%;
  149. height: 100%;
  150. background: #7171C6;
  151. z-index: 1000;
  152. -webkit-transform: translateX(0);
  153. -ms-transform: translateX(0);
  154. transform: translateX(0);
  155. }
  156. #loader-wrapper .loader-section.section-left {
  157. left: 0;
  158. }
  159. #loader-wrapper .loader-section.section-right {
  160. right: 0;
  161. }
  162. .loaded #loader-wrapper .loader-section.section-left {
  163. -webkit-transform: translateX(-100%);
  164. -ms-transform: translateX(-100%);
  165. transform: translateX(-100%);
  166. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  167. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  168. }
  169. .loaded #loader-wrapper .loader-section.section-right {
  170. -webkit-transform: translateX(100%);
  171. -ms-transform: translateX(100%);
  172. transform: translateX(100%);
  173. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  174. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  175. }
  176. .loaded #loader {
  177. opacity: 0;
  178. -webkit-transition: all 0.3s ease-out;
  179. transition: all 0.3s ease-out;
  180. }
  181. .loaded #loader-wrapper {
  182. visibility: hidden;
  183. -webkit-transform: translateY(-100%);
  184. -ms-transform: translateY(-100%);
  185. transform: translateY(-100%);
  186. -webkit-transition: all 0.3s 1s ease-out;
  187. transition: all 0.3s 1s ease-out;
  188. }
  189. .no-js #loader-wrapper {
  190. display: none;
  191. }
  192. .no-js h1 {
  193. color: #222222;
  194. }
  195. #loader-wrapper .load_title {
  196. font-family: 'Open Sans';
  197. color: #FFF;
  198. font-size: 19px;
  199. width: 100%;
  200. text-align: center;
  201. z-index: 9999999999999;
  202. position: absolute;
  203. top: 60%;
  204. opacity: 1;
  205. line-height: 30px;
  206. }
  207. #loader-wrapper .load_title span {
  208. font-weight: normal;
  209. font-style: italic;
  210. font-size: 13px;
  211. color: #FFF;
  212. opacity: 0.5;
  213. }
  214. </style>
  215. </head>
  216. <body>
  217. <div id="app">
  218. <div id="loader-wrapper">
  219. <div id="loader"></div>
  220. <div class="loader-section section-left"></div>
  221. <div class="loader-section section-right"></div>
  222. <div class="load_title">正在加载系统资源,请耐心等待</div>
  223. </div>
  224. </div>
  225. <script type="module" src="/src/main.js"></script>
  226. </body>
  227. </html>