index.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  6. <meta name="Description" content="考试云平台 -- 由武汉启明泰和软件服务有限公司提供" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <title>网考学生端</title>
  9. <script>
  10. // 重命名 Electron 提供的 require 详细请参考:https://www.w3cschool.cn/electronmanual/electronmanual-electron-faq.html
  11. if (typeof require != "undefined") {
  12. window.nodeRequire = require;
  13. window.proceess = process;
  14. delete window.require;
  15. delete window.exports;
  16. delete window.module;
  17. delete window.process;
  18. }
  19. </script>
  20. <script src="https://static.geetest.com/static/tools/gt.js"></script>
  21. <style>
  22. #app-placeholder {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div id="app-placeholder">
  31. <div style="
  32. height: 120px;
  33. font-size: 40px;
  34. text-align: center;
  35. width: 100vw;
  36. ">
  37. 程序加载中...
  38. </div>
  39. <div class="js-close" style="display: none; justify-content: center; align-items: center;">
  40. 加载太慢?
  41. <button style="border: 1px solid; padding: 2px 4px; border-radius: 5px;">关闭</button>
  42. </div>
  43. <script>
  44. //加载超过30秒还没有加载完JS,就显示关闭按钮,可退出应用
  45. setTimeout(() => {
  46. const closeBtn = document.querySelector('#app-placeholder .js-close');
  47. if (closeBtn) {
  48. closeBtn.style.display = "flex";
  49. closeBtn.addEventListener('click', () => window.close());
  50. }
  51. }, 30 * 1000);
  52. </script>
  53. </div>
  54. <div id="app" onpaste="false" oncopy="false" oncut="false"></div>
  55. <!-- baidu tongji -->
  56. <script>
  57. var _hmt = _hmt || [];
  58. // TODO: 开发过程中注释掉
  59. (function () {
  60. var hm = document.createElement("script");
  61. hm.src = "https://hm.baidu.com/hm.js?d00b10467bcf422aeadda1f7074f32d3";
  62. var s = document.getElementsByTagName("script")[0];
  63. s.parentNode.insertBefore(hm, s);
  64. })();
  65. </script>
  66. <script type="module" src="/src/main.ts"></script>
  67. </body>
  68. </html>