index.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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>photo-upload</title>
  9. <script type="text/javascript">
  10. if (typeof require === "undefined") {
  11. document.writeln(
  12. `不能通过浏览器访问本页面。请下载最新 <a href='https://www.exam-cloud.cn/electron-config/照片上传工具-<%= VUE_APP_ELECTRON_CLIENT_VERSION %>-正式版.exe'>照片上传工具</a>`
  13. );
  14. }
  15. if (
  16. navigator.appVersion.match(/ECS-PHOTO-UPLOAD\/(\S+)/)[1] !=
  17. "<%= VUE_APP_ELECTRON_CLIENT_VERSION %>"
  18. ) {
  19. setTimeout(
  20. () =>
  21. (document.body.innerHTML = `照片上传工具版本过时。请下载最新 <a href='https://www.exam-cloud.cn/electron-config/照片上传工具-<%= VUE_APP_ELECTRON_CLIENT_VERSION %>-正式版.exe'>照片上传工具</a>`),
  22. 300
  23. );
  24. }
  25. </script>
  26. <script>
  27. (function() {
  28. // 按Ctrl+Shift+U,放开U,在一秒内再按Ctrl+Shift+P,可以调出开发者工具
  29. let firstStepKey = false;
  30. document.addEventListener("keydown", function(e) {
  31. if (e.ctrlKey && e.shiftKey && e.code === "KeyU") {
  32. firstStepKey = true;
  33. setTimeout(() => {
  34. firstStepKey = false;
  35. }, 1000);
  36. }
  37. if (firstStepKey && e.ctrlKey && e.shiftKey && e.code === "KeyP") {
  38. nodeRequire("electron")
  39. .remote.getCurrentWindow()
  40. .toggleDevTools();
  41. }
  42. });
  43. })();
  44. </script>
  45. <script type="text/javascript">
  46. if (typeof require != "undefined") {
  47. window.nodeRequire = require;
  48. delete window.require;
  49. delete window.exports;
  50. delete window.module;
  51. }
  52. </script>
  53. </head>
  54. <body>
  55. <noscript>
  56. <strong
  57. >We're sorry but examcloud-web-photo-upload doesn't work properly
  58. without JavaScript enabled. Please enable it to continue.</strong
  59. >
  60. </noscript>
  61. <div id="app"></div>
  62. <!-- built files will be auto injected -->
  63. </body>
  64. </html>