index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>粮情信息三维展示</title>
  6. <style>
  7. body {
  8. margin: 0;
  9. overflow: hidden;
  10. /* 隐藏body窗口区域滚动条 */
  11. }
  12. #CT {
  13. width: 100%;
  14. height: 100%;
  15. z-index: 200;
  16. }
  17. .label {
  18. color: white;
  19. font-family: sans-serif;
  20. padding: 2px;
  21. /* margin-left: -80px;
  22. top: -19px; */
  23. background: rgba(0, 0, 0, .6);
  24. display: none;
  25. }
  26. .label.active{
  27. display: block;
  28. }
  29. #CTXX {
  30. width: 300px;
  31. height: 130px;
  32. position: absolute;
  33. margin-top: 134px;
  34. background-color: #b9c5c5;
  35. /* margin-left: 22px; */
  36. right: 20px;
  37. z-index: 9999;
  38. }
  39. #CTXXTile,
  40. #CTWDTile {
  41. width: 100%;
  42. height: 30px;
  43. background-color: black;
  44. }
  45. #CTXXContent {
  46. width: 100%;
  47. height: 100px;
  48. }
  49. #LK1 {
  50. margin-left: 9px;
  51. margin-top: 3px;
  52. }
  53. #CTWD {
  54. z-index: 9999;
  55. width: 300px;
  56. height: 158px;
  57. position: absolute;
  58. margin-top: 277px;
  59. background-color: #b9c5c5;
  60. /* margin-left: 22px; */
  61. right: 20px;
  62. }
  63. .ctbtn {
  64. width: 145px;
  65. height: 30px;
  66. margin-left: 2px;
  67. background-color: lightblue;
  68. border-color: azure;
  69. }
  70. #CTTitle{
  71. width: 100%;
  72. height: 88px;
  73. background-color: #1a1a1a;
  74. position: absolute;
  75. }
  76. </style>
  77. <!--引入three.js三维引擎-->
  78. <script src="js/three.js"></script>
  79. <!-- 引入threejs扩展控件OrbitControls.js -->
  80. <script src="js/OrbitControls.js"></script>
  81. <script src="js/Object3D.js"></script>
  82. <script src="js/TrackballControls.js"></script>
  83. <script src="js/stats.min.js"></script>
  84. <script src="js/dat.gui.min.js"></script>
  85. <script src="js/onEvent.js"></script>
  86. <script src="js/CSS2DRenderer.js"></script>
  87. <script src="js/jquery.js"></script>
  88. <script src="tmp/threex.atmospherematerial.js"></script>
  89. <script src="tmp/threex.atmospherematerialdatgui.js"></script>
  90. <script src="tmp/threex.dilategeometry.js"></script>
  91. <script src="tmp/threex.geometricglowmesh.js"></script>
  92. <link rel="stylesheet" href="js/loading/jquery.mloading.css" />
  93. <script src="js/loading/jquery.mloading.js"></script>
  94. <script src="js/Tween.js"></script>
  95. </head>
  96. <body>
  97. <div id="CT" onload="draw();">
  98. <div id="CTTitle" style="z-index: 9999;">
  99. <h1 style="position: absolute;color: #eee;margin-left: 28px;">粮情信息三维展示</h1>
  100. </div>
  101. </div>
  102. <div id="CTXX">
  103. <div id="CTXXTile">
  104. <b style="position: absolute;margin-top: 6px;margin-left: 12px;color: beige;opacity: 0.6;">仓体信息</b>
  105. </div>
  106. <div id="CTXXContent">
  107. <div id="LK1">
  108. <i>粮食等级:</i>
  109. <i id="LSDJ"></i>
  110. </div>
  111. <div id="LK1">
  112. <i>粮库名称:</i>
  113. <i id="LKMC"></i>
  114. </div>
  115. <div id="LK1">
  116. <i>保管员:</i>
  117. <i id="LKBGY"></i>
  118. </div>
  119. <div id="LK1">
  120. <i>粮食品种:</i>
  121. <i id="LSPZ"></i>
  122. </div>
  123. </div>
  124. </div>
  125. <div id="CTWD">
  126. <div id="CTWDTile">
  127. <b style="position: absolute;margin-top: 6px;margin-left: 12px;color: beige;opacity: 0.6;">仓体温度</b>
  128. </div>
  129. <div id="LK1">
  130. <i>仓内湿度:</i>
  131. <i id="CNSD"></i>
  132. </div>
  133. <div id="LK1">
  134. <i>仓内温度:</i>
  135. <i id="CNWD"></i>
  136. </div>
  137. <div id="LK1">
  138. <i>仓外湿度:</i>
  139. <i id="CWSD"></i>
  140. </div>
  141. <div id="LK1">
  142. <i>仓外温度:</i>
  143. <i id="CWWD"></i>
  144. </div>
  145. <button class="ctbtn" onclick="CWXQ()">测温详情</button>
  146. <button class="ctbtn" onclick="HFQJ()">恢复全景</button>
  147. </div>
  148. <script src="tools/lctools.min.js"></script>
  149. </body>
  150. </html>