loading.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. body {
  10. line-height: 300px;
  11. margin: 0;
  12. padding: 0;
  13. overflow: hidden;
  14. background: rgba(238, 235, 235, 0.5);
  15. background-image: url('./xlfs_jm_bg.png');
  16. }
  17. .loadP {
  18. /* line-height: 200px;
  19. font-size: 30px;
  20. text-align: center;
  21. color: rgb(40, 162, 162); */
  22. /* width: 157px; */
  23. height: 16px;
  24. font-size: 16px;
  25. font-family: Alibaba PuHuiTi;
  26. font-weight: 400;
  27. color: #FFFFFF;
  28. line-height: 15px;
  29. margin-top: 40px;
  30. padding-left: 27px;
  31. }
  32. .topLine {
  33. display: flex;
  34. height: 39px;
  35. margin-top: 20px;
  36. margin-left: 27px;
  37. }
  38. .topFont {
  39. display: block;
  40. height: 16px;
  41. font-size: 16px;
  42. font-family: Alibaba PuHuiTi;
  43. font-weight: 400;
  44. color: #FFFFFF;
  45. line-height: 15px;
  46. margin-top: 4px;
  47. }
  48. .versionFont {
  49. text-align: right;
  50. /* width: 158px; */
  51. display: block;
  52. font-size: 8px;
  53. font-family: PingFang SC;
  54. font-weight: bold;
  55. color: #FFFFFF;
  56. line-height: 15px;
  57. opacity: 0.7;
  58. margin-top: 8px;
  59. }
  60. .topProject {
  61. width: 157px;
  62. height: 16px;
  63. font-size: 16px;
  64. font-family: Alibaba PuHuiTi;
  65. font-weight: 400;
  66. color: #FFFFFF;
  67. line-height: 15px;
  68. }
  69. .progress-bar {
  70. margin-top: 140px;
  71. width: 100%;
  72. height: 2px;
  73. overflow: hidden;
  74. box-sizing: border-box;
  75. border-radius: 24px;
  76. background-color: rgba(180, 160, 120, .2);
  77. position: relative;
  78. }
  79. .progress-bg {
  80. width: 20%;
  81. height: 100%;
  82. overflow: hidden;
  83. box-sizing: border-box;
  84. /* background-image: #00BFFF 25%; */
  85. background-image: linear-gradient(135deg, #36B1D1 25%, #36B1D1 0, #36B1D1 50%, #36B1D1 0, #36B1D1 75%, #36B1D1 0);
  86. animation: panoramic 20s linear infinite;
  87. background-size: 32px 100%;
  88. }
  89. @keyframes panoramic {
  90. to {
  91. background-position: 200% 0;
  92. }
  93. }
  94. .jimigou {
  95. margin-top: 5px;
  96. color: #FFFFFF;
  97. font-size: 11px;
  98. font-weight: 400;
  99. font-family: PingFang SC;
  100. line-height: 15px;
  101. margin-left: 77px;
  102. opacity: 0.8;
  103. }
  104. .company {
  105. text-align: right;
  106. margin-top: 20px;
  107. font-size: 12px;
  108. font-family: PingFang SC;
  109. font-weight: 400;
  110. color: #FEFEFE;
  111. line-height: 15px;
  112. opacity: 0.8;
  113. margin-bottom: 2px;
  114. }
  115. .website {
  116. margin-top: 2px;
  117. text-align: right;
  118. font-size: 12px;
  119. font-family: PingFang SC;
  120. font-weight: 400;
  121. color: #FEFEFE;
  122. line-height: 15px;
  123. opacity: 0.6;
  124. }
  125. .closeClass {
  126. margin-top: 2px;
  127. text-align: right;
  128. font-size: 12px;
  129. font-family: PingFang SC;
  130. font-weight: 400;
  131. color: #FEFEFE;
  132. line-height: 15px;
  133. opacity: 1;
  134. }
  135. </style>
  136. </head>
  137. <body>
  138. <!-- <p class="loadP"><img src="./rj_logo.png" />
  139. </p> -->
  140. <div class="closeClass"><img onclick="closeLoad()" width="15px" height="15px" style="margin-right:8px;margin-top:2px;"
  141. src="./close1.png" /></div>
  142. <div class="topLine">
  143. <img width="25px" height="25px" src="./rj_logo.png" />
  144. <div class="topFont"><span class="">&nbsp;&nbsp;智能心理健康检测系统</span><br><span class='versionFont'>版本1.1.5</span></div>
  145. </div>
  146. <div class="progress-bar">
  147. <div class="progress-bg" id="pro"></div>
  148. </div>
  149. <p class="jimigou" id="jimigou">软件启动中</p>
  150. <!-- <p class="jimigou" id="jimigou">检测到加密狗,软件启动中</p> -->
  151. <p class="company">&nbsp;&nbsp;&nbsp;&nbsp;</p>
  152. <p class="website">郑州优算信息科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;</p>
  153. <!-- <img width="400px";height='300px' src="./xlfs_jm_bg.png" alt="" srcset=""> -->
  154. </body>
  155. </html>
  156. <script>
  157. const { ipcRenderer } = window.require('electron');
  158. ipcRenderer.send("main-windows-jimigou-flag", {
  159. type: '0',
  160. });
  161. ipcRenderer.on("main-windows-jimigou", (event, arg) => {
  162. if (arg.type == '1') {
  163. //未发现加密狗
  164. let dian = document.getElementById('jimigou')
  165. dian.innerHTML = '未检测到加密狗,软件无法启动';
  166. dian.style.color = '#FF3030'
  167. // setTimeout(() => {
  168. // let qq = document.getElementById('pro')
  169. // qq.style.width = '60%'
  170. // }, 1000);
  171. } else {
  172. //发现了加密狗
  173. //未发现加密狗
  174. let dian = document.getElementById('jimigou')
  175. // dian.innerHTML = '检测到加密狗,软件启动中...';
  176. dian.innerHTML = '软件启动中...';
  177. dian.style.color = '#FEFEFE'
  178. setTimeout(() => {
  179. let qq = document.getElementById('pro')
  180. qq.style.width = '60%'
  181. }, 1000);
  182. setTimeout(() => {
  183. let qq = document.getElementById('pro')
  184. qq.style.width = '80%'
  185. }, 1500);
  186. setTimeout(() => {
  187. let qq = document.getElementById('pro')
  188. qq.style.width = '100%'
  189. }, 3000);
  190. setTimeout(() => {
  191. ipcRenderer.send("main-windows-jimigou-flag", {
  192. type: '1',
  193. });
  194. }, 4000);
  195. }
  196. });
  197. //window-close
  198. function closeLoad() {
  199. ipcRenderer.send("window-close", {
  200. type: '1',
  201. });
  202. }
  203. // let dian = document.getElementById('dian')
  204. // let dianNum = ''
  205. // let count = 0;
  206. // let time = setInterval(() => {
  207. // count = count + 1
  208. // dianNum = dianNum + '.'
  209. // dian.innerHTML = dianNum;
  210. // if (count == 4) {
  211. // dianNum = ''
  212. // }
  213. // if (count == 6) {
  214. // clearInterval(time)
  215. // }
  216. // }, 500);
  217. </script>