123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width,initial-scale=1.0" />
- <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
- <title>网考学生端</title>
- <script>
- // 重命名 Electron 提供的 require 详细请参考:https://www.w3cschool.cn/electronmanual/electronmanual-electron-faq.html
- if (typeof require != "undefined") {
- window.nodeRequire = require;
- delete window.require;
- delete window.exports;
- delete window.module;
- }
- </script>
- </head>
- <style>
- #app-placeholder {
- position: absolute;
- top: 0;
- left: 0;
- }
- .app-placeholder-img {
- background-image: url(/img/bg.4c1d802d.jpg);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- width: 100vw;
- min-height: 600px;
- }
- </style>
- <body>
- <div id="app-placeholder">
- <div style="height: 120px; font-size: 40px; text-align: center">
- 程序加载中...
- </div>
- <div class="app-placeholder-img"></div>
- </div>
- <script>
- if (false && location.host.includes("ecs.qmth.com.cn")) {
- (async function() {
- var __sampleRateInt = 100;
- try {
- var res = await fetch("/electron-config/ali-arms.js", {
- cache: "no-store"
- });
- var text = await res.text();
- __sampleRateInt = parseInt(text) || 100;
- } catch (error) {
- console.log(error);
- } finally {
- console.log("ARMS sample: " + __sampleRateInt);
- !(function(c, b, d, a) {
- c[a] || (c[a] = {});
- c[a].config = {
- pid: "hworw@48e147d26fd751a",
- enableSPA: true,
- sample: __sampleRateInt,
- sendResource: true,
- imgUrl: "https://arms-retcode.aliyuncs.com/r.png?"
- };
- with (b)
- with (body)
- with (insertBefore(createElement("script"), firstChild))
- setAttribute("crossorigin", "", (src = d));
- })(
- window,
- document,
- "https://retcode.alicdn.com/retcode/bl.js",
- "__bl"
- );
- }
- })();
- }
- </script>
- <div id="app"></div>
- <!-- built files will be auto injected -->
- <!-- baidu tongji -->
- <script>
- var _hmt = _hmt || [];
- (function() {
- var hm = document.createElement("script");
- hm.src = "https://hm.baidu.com/hm.js?8f776e9b3eb700921c71576bbba0dac8";
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(hm, s);
- // var result = "";
- // navigator.mediaDevices
- // .enumerateDevices()
- // .then(function(devices) {
- // debugger;
- // devices.forEach(function(device) {
- // if (device.kind == "videoinput") {
- // console.log(device.kind + ": " + device.label);
- // result += device.kind + ": " + device.label + " || ";
- // }
- // });
- // if (result) _hmt.push(["_setUserTag", "5102", result]); // cameraId
- // })
- // .catch(function(err) {
- // console.log(err.name + ": " + err.message);
- // result += " error: " + err.name + " : " + err.message + " || ";
- // _hmt.push(["_setUserTag", "5102", result]); // cameraId
- // });
- })();
- </script>
- </body>
- </html>
|