| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html lang="en" id="htmlRoot">
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="renderer" content="webkit" />
- <meta name="keywords" content="空间数据管理平台" />
- <meta name="description" content="空间数据管理平台" />
- <meta http-equiv="Expires" content="0" />
- <meta http-equiv="Cache-control" content="no-cache" />
- <meta http-equiv="Cache" content="no-cache" />
- <title>空间数据管理平台</title>
- <link rel="icon" href="/favicon.ico" />
- <style>
- body {
- margin: 0;
- padding: 0;
- overflow: hidden;
- -ms-overflow-style: none;
- scrollbar-width: none;
- }
- body::-webkit-scrollbar {
- display: none;
- }
- </style>
- </head>
- <body>
- <script>
- window.οncοntextmenu = function (e) { return false; };
- window.onkeydown = function () {
- if (window.event && window.event.keyCode == 123) {
- return false;
- }
- if (window.event && window.event.keyCode == 17) {
- return false
- if (window.event && window.event.keyCode == 16) {
- return false;
- }
- };
- };
- // const check = () => {
- // const doCheck = (a) => {
- // (function () { }["constructor"]("debugger")());
- // doCheck(++a);
- // };
- // try {
- // doCheck(0);
- // } catch (err) {
- // console.log("err", err);
- // }
- // };
- // check();
- // setInterval(check, 1000);
- new BroadcastChannel('myChannel').onmessage = function (event) {
- console.log('Message received:', event.data);
- sessionStorage.clear();
- localStorage.clear();
- window.close();
- };
- window.onload = function () {
- var t1 = sessionStorage.getItem('tokenSpace');
- var t2 = sessionStorage.getItem('tokenV2');
- if (t1 && t2) {
- var obj = JSON.parse(JSON.stringify(window.location.href));
- var arr = obj.split("?")
- if (arr.length && arr[1]) {
- if (arr[1].indexOf("onlineIde_") > -1) {
- creteIframe(`http://106.12.170.138:4001/examples/online.html#${arr[1].replace("onlineIde_", "")}`)
- // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
- // creteIframe(`http://192.168.119.143/examples/webgl/online.html#${arr[1].replace("onlineIde_", "")}`)
- } else {
- // creteIframe(arr[1])
- // creteIframe(`http://192.168.119.143/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
- // creteIframe(`http://192.168.119.143:8080/onemapV5.0/mapview.html?${arr[1]}`)
- creteIframe(`http://106.12.170.138:8080/onemapV5.0/mapview.html?${arr[1]}`)
- }
- }
- } else {
- window.location.href = '/spatialDataMng/index.html#/login?redirect=/dashboard/workbench'
- }
- }
- function creteIframe(url) {
- const iframe = document.createElement('iframe');
- iframe.style.width = '100vw';
- iframe.style.height = '100vh';
- iframe.style.border = '0px';
- iframe.src = url;
- document.body.appendChild(iframe);
- }
- </script>
- </body>
- </html>
|