index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. <meta name="renderer" content="webkit">
  6. <meta charset="utf-8">
  7. <meta name="viewport">
  8. <title>温州市“天空地”态势感知综合场景应用</title>
  9. <style>
  10. html, body {
  11. width: 100%;
  12. height: 100%;
  13. margin: 0;
  14. padding: 0;
  15. border: none;
  16. overflow: hidden
  17. }
  18. boyd {
  19. font-size: 12px;
  20. }
  21. @media screen and (min-width: 1366px) {
  22. html {
  23. font-size: 444%;
  24. }
  25. }
  26. @media screen and (min-width: 1440px) {
  27. html {
  28. font-size: 468%;
  29. }
  30. }
  31. @media screen and (min-width: 1600px) {
  32. html {
  33. font-size: 520%;
  34. }
  35. }
  36. @media screen and (min-width: 1920px) {
  37. html {
  38. font-size: 625%;
  39. }
  40. }
  41. </style>
  42. <script src="static/earthSDK/XbsjEarth/XbsjEarth.js"></script>
  43. <script src="static/html2canvas/html2canvas.min.js"></script>
  44. </head>
  45. <body>
  46. <div id="app"></div>
  47. <script type="text/javascript" src="/static/config/config.js"></script>
  48. <!-- built files will be auto injected -->
  49. <script type="text/javascript">
  50. // 浏览器webp支持检测
  51. (function () {
  52. window.earth = {}
  53. function check_webp_feature(feature, callback) {
  54. var kTestImages = {
  55. lossy: "UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",
  56. lossless: "UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",
  57. alpha: "UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",
  58. animation: "UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"
  59. };
  60. var img = new Image();
  61. img.onload = function () {
  62. var result = (img.width > 0) && (img.height > 0);
  63. callback(feature, result);
  64. };
  65. img.onerror = function () {
  66. callback(feature, false);
  67. };
  68. img.src = "data:image/webp;base64," + kTestImages[feature];
  69. }
  70. function addRootTag() {
  71. var className = document.documentElement.className;
  72. var name = className ? ' webpa' : 'webpa';
  73. document.documentElement.className += name;
  74. }
  75. check_webp_feature('lossy', function (feature, status) {
  76. if (status) {
  77. addRootTag();
  78. window.webpAvaile = true;
  79. }
  80. })
  81. })();
  82. </script>
  83. </body>
  84. </html>