lsc 2 tahun lalu
induk
melakukan
7c303d5dc0
2 mengubah file dengan 11 tambahan dan 13 penghapusan
  1. 11 0
      index.html
  2. 0 13
      js/Desktop/Onload.js

+ 11 - 0
index.html

@@ -46,6 +46,17 @@
         document.domain = document.domain.split(".").slice(-2).join(".");
     </script>
     <meta name="viewport" id="viewportMeta">
+    <script>
+        var initViewport = function (height, width) {
+            var metaEl = document.querySelector("#viewportMeta");
+            var content = "height=" + height + ",width=" + width + ",initial-scale=1.0,user-scalable=no";
+            metaEl.setAttribute('name', 'viewport');
+            metaEl.setAttribute('content', content);
+        }
+        var realHeight = window.innerHeight > window.innerWidth ? window.innerWidth : window.innerHeight
+        var realWidth = window.innerHeight > window.innerWidth ? window.innerHeight : window.innerWidth
+        initViewport(realHeight, realWidth);
+    </script>
 </head>
 
 <body scroll="no" class="U_MD_D_NotText Scrollbar" style="overflow: hidden;">

+ 0 - 13
js/Desktop/Onload.js

@@ -48,19 +48,6 @@ window.onload = function () {
     // })
 }
 
-
-var initViewport = function (height, width) {
-    var metaEl = document.querySelector("#viewportMeta");
-    var content = "height=" + height + ",width=" + width + ",initial-scale=1.0,user-scalable=no";
-    metaEl.setAttribute('name', 'viewport');
-    metaEl.setAttribute('content', content);
-}
-var realHeight = window.innerHeight > window.innerWidth ? window.innerWidth : window.innerHeight
-var realWidth = window.innerHeight > window.innerWidth ? window.innerHeight : window.innerWidth
-initViewport(realHeight, realWidth);
-
-
-
 US.Config = {
     server: '//beta.api.cocorobo.cn/api/',
     api: '//beta.api.cocorobo.cn/',