index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta
  7. name="Description"
  8. content="考试云平台 -- 由武汉启明泰和软件服务有限公司提供"
  9. />
  10. <meta name="viewport" content="width=device-width,initial-scale=1.0" />
  11. <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
  12. <title>网考学生端</title>
  13. <script>
  14. // 重命名 Electron 提供的 require 详细请参考:https://www.w3cschool.cn/electronmanual/electronmanual-electron-faq.html
  15. if (typeof require != "undefined") {
  16. window.nodeRequire = require;
  17. delete window.require;
  18. delete window.exports;
  19. delete window.module;
  20. }
  21. </script>
  22. <script src="https://static.geetest.com/static/tools/gt.js"></script>
  23. </head>
  24. <style>
  25. #app-placeholder {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. }
  30. </style>
  31. <body>
  32. <div id="app-placeholder">
  33. <div
  34. style="
  35. height: 120px;
  36. font-size: 40px;
  37. text-align: center;
  38. width: 100vw;
  39. "
  40. >
  41. 程序加载中...
  42. </div>
  43. </div>
  44. <script>
  45. if (
  46. ["exam", "qmtest"]
  47. .map((v) => "https://" + v + ".")
  48. .some((v) => location.href.includes(v))
  49. ) {
  50. (async function () {
  51. !(function (c, b, d, a) {
  52. c[a] || (c[a] = {});
  53. c[a].config = {
  54. pid: "hworw@536497ba86039b9",
  55. enableSPA: false,
  56. sample: 1,
  57. sendResource: false,
  58. behavior: true,
  59. imgUrl: "https://arms-retcode.aliyuncs.com/r.png?",
  60. ignore: {
  61. ignoreUrls: [/.+?hm\.baidu\.com.+/],
  62. },
  63. };
  64. with (b)
  65. with (body)
  66. with (insertBefore(createElement("script"), firstChild))
  67. setAttribute("crossorigin", "", (src = d));
  68. })(
  69. window,
  70. document,
  71. "https://retcode.alicdn.com/retcode/bl.js",
  72. "__bl"
  73. );
  74. })();
  75. }
  76. </script>
  77. <div id="app"></div>
  78. <!-- built files will be auto injected -->
  79. <!-- baidu tongji -->
  80. <script>
  81. var _hmt = _hmt || [];
  82. (function () {
  83. var hm = document.createElement("script");
  84. hm.src = "https://hm.baidu.com/hm.js?d00b10467bcf422aeadda1f7074f32d3";
  85. var s = document.getElementsByTagName("script")[0];
  86. s.parentNode.insertBefore(hm, s);
  87. // var result = "";
  88. // navigator.mediaDevices
  89. // .enumerateDevices()
  90. // .then(function(devices) {
  91. // debugger;
  92. // devices.forEach(function(device) {
  93. // if (device.kind == "videoinput") {
  94. // console.log(device.kind + ": " + device.label);
  95. // result += device.kind + ": " + device.label + " || ";
  96. // }
  97. // });
  98. // if (result) _hmt.push(["_setUserTag", "5102", result]); // cameraId
  99. // })
  100. // .catch(function(err) {
  101. // console.log(err.name + ": " + err.message);
  102. // result += " error: " + err.name + " : " + err.message + " || ";
  103. // _hmt.push(["_setUserTag", "5102", result]); // cameraId
  104. // });
  105. })();
  106. </script>
  107. </body>
  108. </html>