index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>
  10. (function () {
  11. // 按Ctrl+Shift+U,放开U,在一秒内再按Ctrl+Shift+P,可以调出开发者工具
  12. let firstStepKey = false
  13. document.addEventListener("keydown", function (e) {
  14. console.log(e);
  15. if (e.ctrlKey && e.shiftKey && e.code === 'KeyU') {
  16. firstStepKey = true;
  17. setTimeout(() => {
  18. firstStepKey = false
  19. }, 1000);
  20. }
  21. if (firstStepKey && e.ctrlKey && e.shiftKey && e.code === 'KeyP') {
  22. nodeRequire('electron').remote.getCurrentWindow().toggleDevTools();
  23. }
  24. });
  25. })()
  26. </script>
  27. <script type="text/javascript">
  28. if (typeof (require) != "undefined") {
  29. window.nodeRequire = require;
  30. delete window.require;
  31. delete window.exports;
  32. delete window.module;
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <noscript>
  38. <strong>We're sorry but examcloud-web-photo-upload doesn't work properly without JavaScript enabled. Please enable it
  39. to continue.</strong>
  40. </noscript>
  41. <div id="app"></div>
  42. <!-- built files will be auto injected -->
  43. </body>
  44. </html>