mapsee.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="en" id="htmlRoot">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="keywords" content="空间数据管理平台" />
  8. <meta name="description" content="空间数据管理平台" />
  9. <meta http-equiv="Expires" content="0" />
  10. <meta http-equiv="Cache-control" content="no-cache" />
  11. <meta http-equiv="Cache" content="no-cache" />
  12. <title>空间数据管理平台</title>
  13. <link rel="icon" href="/favicon.ico" />
  14. <style>
  15. body {
  16. margin: 0;
  17. padding: 0;
  18. overflow: hidden;
  19. -ms-overflow-style: none;
  20. scrollbar-width: none;
  21. }
  22. body::-webkit-scrollbar {
  23. display: none;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <script>
  29. window.οncοntextmenu = function (e) { return false; };
  30. window.onkeydown = function () {
  31. if (window.event && window.event.keyCode == 123) {
  32. return false;
  33. }
  34. if (window.event && window.event.keyCode == 17) {
  35. return false
  36. if (window.event && window.event.keyCode == 16) {
  37. return false;
  38. }
  39. };
  40. };
  41. // const check = () => {
  42. // const doCheck = (a) => {
  43. // (function () { }["constructor"]("debugger")());
  44. // doCheck(++a);
  45. // };
  46. // try {
  47. // doCheck(0);
  48. // } catch (err) {
  49. // console.log("err", err);
  50. // }
  51. // };
  52. // check();
  53. // setInterval(check, 1000);
  54. window.onload = function () {
  55. var obj = JSON.parse(JSON.stringify(window.location.href));
  56. var arr = obj.split("?")
  57. if (arr.length && arr[1]) {
  58. if (arr[1].indexOf("onlineIde_") > -1) {
  59. // creteIframe(`http://106.12.170.138:4001/examples/online.html#${arr[1].replace("onlineIde_", "")}`)
  60. // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  61. creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  62. } else {
  63. // creteIframe(arr[1])
  64. // creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  65. creteIframe(`http://192.168.119.143:8080/onemapV5.0/mapview.html?${arr[1]}`)
  66. // creteIframe(`http://106.12.170.138:8080/onemapV5.0/mapview.html?${arr[1]}`)
  67. }
  68. }
  69. }
  70. function creteIframe(url) {
  71. const iframe = document.createElement('iframe');
  72. iframe.style.width = '100vw';
  73. iframe.style.height = '100vh';
  74. iframe.style.border = '0px';
  75. iframe.src = url;
  76. document.body.appendChild(iframe);
  77. }
  78. </script>
  79. </body>
  80. </html>