This commit is contained in:
libccy 2017-04-08 14:42:03 +08:00
parent 86fe190d5b
commit 1084e30c7e
1 changed files with 26 additions and 15 deletions

View File

@ -31309,20 +31309,20 @@
ui.create.div('.caption',list[i].name,node); ui.create.div('.caption',list[i].name,node);
ui.create.div('.text.author','作者:'+list[i].author+'<span>('+list[i].size+')</span>',node); ui.create.div('.text.author','作者:'+list[i].author+'<span>('+list[i].size+')</span>',node);
ui.create.div('.text',list[i].intro,node); ui.create.div('.text',list[i].intro,node);
if(list[i].netdisk){
var linknode=ui.create.div('.text',node);
ui.create.node('span.hrefnode','网盘链接',function(){
game.open(this.link);
},linknode).link=list[i].netdisk;
if(list[i].forum){
ui.create.node('span',linknode).style.marginRight='10px';
ui.create.node('span.hrefnode','参与讨论',function(){
game.open(this.link);
},linknode).link=list[i].forum;
}
}
var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild); var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild);
if(game.download){ if(game.download){
if(list[i].netdisk){
var linknode=ui.create.div('.text',node);
ui.create.node('span.hrefnode','网盘链接',function(){
game.open(this.link);
},linknode).link=list[i].netdisk;
if(list[i].forum){
ui.create.node('span',linknode).style.marginRight='10px';
ui.create.node('span.hrefnode','参与讨论',function(){
game.open(this.link);
},linknode).link=list[i].forum;
}
}
download.listen(downloadExtension); download.listen(downloadExtension);
if(lib.config.extensions.contains(list[i].name)){ if(lib.config.extensions.contains(list[i].name)){
download.classList.remove('active'); download.classList.remove('active');
@ -31339,9 +31339,20 @@
download.info=list[i]; download.info=list[i];
} }
else{ else{
var a=ui.create.node('a',download); if(list[i].forum){
a.href=lib.extensionURL+'zip/'+list[i].name+'.zip'; var linknode=ui.create.div('.text',node);
a.download=true; ui.create.node('span',linknode);
ui.create.node('span.hrefnode','参与讨论',function(){
game.open(this.link);
},linknode).link=list[i].forum;
}
download.listen(function(){
game.open(this.link);
});
download.link=list[i].netdisk;
// var a=ui.create.node('a',download);
// a.href=lib.extensionURL+'zip/'+list[i].name+'.zip';
// a.download=true;
} }
} }
},function(){ },function(){