sceneview.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.onload = function () {
  30. var obj = JSON.parse(JSON.stringify(window.location.href));
  31. var arr = obj.split("?")
  32. if (arr.length && arr[1]) {
  33. if (arr[1].indexOf("onlineIde_") > -1) {
  34. // creteIframe(`http://106.12.170.138:4001/examples/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  35. // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  36. creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
  37. } else {
  38. // creteIframe(arr[1])
  39. creteIframe(`http://192.168.119.143:8080/onemapV5.0/sceneview.html?${arr[1]}`)
  40. }
  41. }
  42. }
  43. function creteIframe(url) {
  44. const iframe = document.createElement('iframe');
  45. iframe.style.width = '100vw';
  46. iframe.style.height = '100vh';
  47. iframe.style.border = '0px';
  48. iframe.src = url;
  49. document.body.appendChild(iframe);
  50. }
  51. </script>
  52. </body>
  53. </html>