فهرست منبع

修复地图全屏后不显示问题

shaogen1995 3 سال پیش
والد
کامیت
a4f180e290
2فایلهای تغییر یافته به همراه4 افزوده شده و 7 حذف شده
  1. 2 5
      index.html
  2. 2 2
      js/loadCAD.js

+ 2 - 5
index.html

@@ -65,7 +65,8 @@
 
         .welcome video {
             width: 100%;
-            /* height: 100%; */
+            height: 100%;
+            background-color: rgba(0, 0, 0, .8);
         }
 
         .jumpvideo {
@@ -916,10 +917,6 @@
         </div>
         <div id="tag-billboards" style="display: none;"></div>
 
-        <div class="cad">
-            <div id="cad"></div>
-        </div>
-
     </div>
 
     <script>

+ 2 - 2
js/loadCAD.js

@@ -65,7 +65,7 @@ window.grendCAD = (function grendCAD() {
     `
 
     document.documentElement.appendChild(style)
-    document.documentElement.appendChild($layer)
+    $('body').append($layer)
     $parent.appendChild(style)
     $parent.appendChild($layer)
     return $layer
@@ -144,7 +144,7 @@ $.ajax({
       url: '//super.4dage.com/data/'+ window.number +'/floor.json', 
       method: 'GET',
       success(res) {
-        grendCAD(res, document.documentElement, data.cadSignColor, data.cadBorderColor, data.cadBorderWidth)
+        grendCAD(res, document.querySelector('body'), data.cadSignColor, data.cadBorderColor, data.cadBorderWidth)
       }
     })
   }