index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html>
  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. <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
  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. delete window.require;
  14. delete window.exports;
  15. delete window.module;
  16. }
  17. </script>
  18. </head>
  19. <style>
  20. #app-placeholder {
  21. position: absolute;
  22. top: 0;
  23. left: 0;
  24. }
  25. .app-placeholder-img {
  26. background-image: url(/img/bg.4c1d802d.jpg);
  27. background-position: center;
  28. background-repeat: no-repeat;
  29. background-size: cover;
  30. width: 100vw;
  31. min-height: 600px;
  32. }
  33. </style>
  34. <body>
  35. <div id="app-placeholder">
  36. <div style="height: 120px; font-size: 40px; text-align: center">
  37. 程序加载中...
  38. </div>
  39. <div class="app-placeholder-img"></div>
  40. </div>
  41. <script>
  42. if (false && location.host.includes("ecs.qmth.com.cn")) {
  43. (async function() {
  44. var __sampleRateInt = 100;
  45. try {
  46. var res = await fetch("/electron-config/ali-arms.js", {
  47. cache: "no-store"
  48. });
  49. var text = await res.text();
  50. __sampleRateInt = parseInt(text) || 100;
  51. } catch (error) {
  52. console.log(error);
  53. } finally {
  54. console.log("ARMS sample: " + __sampleRateInt);
  55. !(function(c, b, d, a) {
  56. c[a] || (c[a] = {});
  57. c[a].config = {
  58. pid: "hworw@48e147d26fd751a",
  59. enableSPA: true,
  60. sample: __sampleRateInt,
  61. sendResource: true,
  62. imgUrl: "https://arms-retcode.aliyuncs.com/r.png?"
  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. }
  77. </script>
  78. <div id="app"></div>
  79. <!-- built files will be auto injected -->
  80. <!-- baidu tongji -->
  81. <script>
  82. var _hmt = _hmt || [];
  83. (function() {
  84. var hm = document.createElement("script");
  85. hm.src = "https://hm.baidu.com/hm.js?8f776e9b3eb700921c71576bbba0dac8";
  86. var s = document.getElementsByTagName("script")[0];
  87. s.parentNode.insertBefore(hm, s);
  88. // var result = "";
  89. // navigator.mediaDevices
  90. // .enumerateDevices()
  91. // .then(function(devices) {
  92. // debugger;
  93. // devices.forEach(function(device) {
  94. // if (device.kind == "videoinput") {
  95. // console.log(device.kind + ": " + device.label);
  96. // result += device.kind + ": " + device.label + " || ";
  97. // }
  98. // });
  99. // if (result) _hmt.push(["_setUserTag", "5102", result]); // cameraId
  100. // })
  101. // .catch(function(err) {
  102. // console.log(err.name + ": " + err.message);
  103. // result += " error: " + err.name + " : " + err.message + " || ";
  104. // _hmt.push(["_setUserTag", "5102", result]); // cameraId
  105. // });
  106. })();
  107. </script>
  108. </body>
  109. </html>