Преглед на файлове

修改上传 增加ios判断

lalalashen преди 4 месеца
родител
ревизия
9af9eeedb7
променени са 4 файла, в които са добавени 44 реда и са изтрити 16 реда
  1. 11 4
      替换的文件/index(Kwai).html
  2. 11 4
      替换的文件/index.html
  3. 11 4
      替换的文件/index1003.html
  4. 11 4
      替换的文件/index1005.html

+ 11 - 4
替换的文件/index(Kwai).html

@@ -88,9 +88,9 @@
       })
     }</script>
 
-<script src="src/settings.c4bf1.js" charset="utf-8"></script>
+<script src="src/settings.51c8a.js" charset="utf-8"></script>
 
-<script src="main.d4181.js" charset="utf-8"></script>
+<script src="main.4506e.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 function isMobileDevice() {
@@ -99,6 +99,9 @@ function isMobileDevice() {
 function isChromeBrowser() {
    return (/Chrome/i.test(navigator.userAgent));
 }
+function isIphone() {
+  return (/iPhone|iPad/i.test(navigator.userAgent));
+}
 function PWA_MODE(){
   if(getUrlParm("pwa") >= 1)
     return true;
@@ -377,6 +380,10 @@ function getCookie(name) {
 
 
 (function () {
+    if(isIphone()){
+      document.getElementById("full_screen").style.width = 0;  
+    }
+  
     setTimeout(function() {
           feedData("init",navigator.userAgent); 
       },200);    
@@ -423,9 +430,9 @@ function getCookie(name) {
       document.body.appendChild(domScript);
     }
 
-    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ea1f2.js', function () {
+    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.22367.js', function () {
       if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
-        loadScript(debug ? 'physics.js' : 'physics-min.b5fcb.js', window.boot);
+        loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
       }
       else {
         window.boot();

+ 11 - 4
替换的文件/index.html

@@ -81,9 +81,9 @@
       })
     }</script>
 
-<script src="src/settings.c4bf1.js" charset="utf-8"></script>
+<script src="src/settings.51c8a.js" charset="utf-8"></script>
 
-<script src="main.d4181.js" charset="utf-8"></script>
+<script src="main.4506e.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 function isMobileDevice() {
@@ -92,6 +92,9 @@ function isMobileDevice() {
 function isChromeBrowser() {
    return (/Chrome/i.test(navigator.userAgent));
 }
+function isIphone() {
+  return (/iPhone|iPad/i.test(navigator.userAgent));
+}
 function PWA_MODE(){
   if(getUrlParm("pwa") >= 1)
     return true;
@@ -367,6 +370,10 @@ function getCookie(name) {
 
 
 (function () {
+    if(isIphone()){
+      document.getElementById("full_screen").style.width = 0;  
+    }
+
     setTimeout(function() {
           feedData("init",navigator.userAgent); 
       },200);    
@@ -413,9 +420,9 @@ function getCookie(name) {
       document.body.appendChild(domScript);
     }
 
-    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ea1f2.js', function () {
+    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.22367.js', function () {
       if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
-        loadScript(debug ? 'physics.js' : 'physics-min.b5fcb.js', window.boot);
+        loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
       }
       else {
         window.boot();

+ 11 - 4
替换的文件/index1003.html

@@ -81,9 +81,9 @@
       })
     }</script>
 
-<script src="src/settings.c4bf1.js" charset="utf-8"></script>
+<script src="src/settings.51c8a.js" charset="utf-8"></script>
 
-<script src="main.d4181.js" charset="utf-8"></script>
+<script src="main.4506e.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 function isMobileDevice() {
@@ -92,6 +92,9 @@ function isMobileDevice() {
 function isChromeBrowser() {
    return (/Chrome/i.test(navigator.userAgent));
 }
+function isIphone() {
+  return (/iPhone|iPad/i.test(navigator.userAgent));
+}
 function PWA_MODE(){
   if(getUrlParm("pwa") >= 1)
     return true;
@@ -367,6 +370,10 @@ function getCookie(name) {
 
 
 (function () {
+    if(isIphone()){
+      document.getElementById("full_screen").style.width = 0;  
+    }
+  
     setTimeout(function() {
           feedData("init",navigator.userAgent); 
       },200);    
@@ -413,9 +420,9 @@ function getCookie(name) {
       document.body.appendChild(domScript);
     }
 
-    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ea1f2.js', function () {
+    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.22367.js', function () {
       if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
-        loadScript(debug ? 'physics.js' : 'physics-min.b5fcb.js', window.boot);
+        loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
       }
       else {
         window.boot();

+ 11 - 4
替换的文件/index1005.html

@@ -81,9 +81,9 @@
       })
     }</script>
 
-<script src="src/settings.c4bf1.js" charset="utf-8"></script>
+<script src="src/settings.51c8a.js" charset="utf-8"></script>
 
-<script src="main.d4181.js" charset="utf-8"></script>
+<script src="main.4506e.js" charset="utf-8"></script>
 
 <script type="text/javascript">
 function isMobileDevice() {
@@ -92,6 +92,9 @@ function isMobileDevice() {
 function isChromeBrowser() {
    return (/Chrome/i.test(navigator.userAgent));
 }
+function isIphone() {
+  return (/iPhone|iPad/i.test(navigator.userAgent));
+}
 function PWA_MODE(){
   if(getUrlParm("pwa") >= 1)
     return true;
@@ -367,6 +370,10 @@ function getCookie(name) {
 
 
 (function () {
+    if(isIphone()){
+      document.getElementById("full_screen").style.width = 0;  
+    }
+  
     setTimeout(function() {
           feedData("init",navigator.userAgent); 
       },200);    
@@ -413,9 +420,9 @@ function getCookie(name) {
       document.body.appendChild(domScript);
     }
 
-    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ea1f2.js', function () {
+    loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.22367.js', function () {
       if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
-        loadScript(debug ? 'physics.js' : 'physics-min.b5fcb.js', window.boot);
+        loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
       }
       else {
         window.boot();