index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. <title>
  8. <%= htmlWebpackPlugin.options.title %>
  9. </title>
  10. <style>
  11. img {
  12. pointer-events: none;
  13. -webkit-user-select: none;
  14. -moz-user-select: none;
  15. user-select: none;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <noscript>
  21. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
  22. Please enable it to continue.</strong>
  23. </noscript>
  24. <div id="app"></div>
  25. <script>
  26. window.myTitUrl = window.location.pathname.split('hot')[0]
  27. window.myTitUrlQuLast = window.myTitUrl.substring(0, window.myTitUrl.length - 1);
  28. if (!window.location.href.includes('&T=1')) {
  29. document.addEventListener("contextmenu", function (e) {
  30. e.preventDefault();
  31. });
  32. document.onkeydown = () => {
  33. //禁用F12
  34. if (window.event && window.event.keyCode == 123) {
  35. return false;
  36. //禁用ctrl+shift+i,
  37. } else if (
  38. window.event.ctrlKey &&
  39. window.event.shiftKey &&
  40. window.event.keyCode == 73
  41. ) {
  42. return false;
  43. //屏蔽Shift+F10
  44. } else if (window.event.shiftKey && window.event.keyCode == 121) {
  45. return false;
  46. }
  47. };
  48. }
  49. </script>
  50. <!-- built files will be auto injected -->
  51. </body>
  52. </html>