From 52492b6d918fdb219ecf726660e8e1377dd9db74 Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 26 Mar 2017 14:38:42 +0800 Subject: [PATCH] v1.9.16 --- game/game.js | 23 ++++++++++++++++++----- game/update.js | 2 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/game/game.js b/game/game.js index e53db3002..ccfbb6495 100644 --- a/game/game.js +++ b/game/game.js @@ -21364,6 +21364,19 @@ navigator.app.exitApp(); } }, + open:function(url){ + if(lib.device){ + if(cordova.InAppBrowser){ + cordova.InAppBrowser.open(url,'_system'); + } + else{ + ui.create.iframe(url); + } + } + else{ + window.open(url); + } + }, reloadCurrent:function(){ game.saveConfig('continue_name',[game.me.name1||game.me.name,game.me.name2]); game.saveConfig('mode',lib.config.mode); @@ -25510,8 +25523,8 @@ var webview=document.createElement('iframe'); webview.src=src; - webview.width='100%'; - webview.height='100%'; + webview.style.width='100%'; + webview.style.height='100%'; webview.style.left='0px'; webview.style.top='0px'; webview.style.position='absolute'; @@ -28614,7 +28627,7 @@ shareExtLine.style.marginBottom='5px'; shareExtLine.innerHTML='已导出扩展。分享扩展×'; shareExtLine.querySelectorAll('span')[0].onclick=function(){ - ui.create.iframe('https://tieba.baidu.com/p/5037850317'); + game.open('https://tieba.baidu.com/p/5037850317'); }; shareExtLine.querySelectorAll('span')[1].onclick=function(){ shareExtLine.style.display='none'; @@ -30548,7 +30561,7 @@ ui.create.div('.text',list[i][2],node); if(list[i][5]){ ui.create.div('.text','下载配音素材',node,function(){ - ui.create.iframe(this.link); + game.open(this.link); }).link=list[i][5]; } var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild); @@ -31158,7 +31171,7 @@ button5=document.createElement('button'); button5.innerHTML='设为默认镜像'; - button5.style.marginLeft='5px'; + // button5.style.marginLeft='5px'; button5.onclick=function(){ game.saveConfig('updateURL'); button5.style.display='none'; diff --git a/game/update.js b/game/update.js index 532aedb87..51a414736 100644 --- a/game/update.js +++ b/game/update.js @@ -1,6 +1,6 @@ window.noname_update={ version:'1.9.16', - // update:'1.9.14', + update:'1.9.15', changeLog:[ '状态栏选项(需更新ios/android客户端)', ],