This commit is contained in:
parent
5ff37c5ebb
commit
47c631b8e5
12
game/game.js
12
game/game.js
|
@ -20654,9 +20654,9 @@
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var zip=new JSZip();
|
var zip=new JSZip();
|
||||||
zip.load(data);
|
|
||||||
var str=zip.file('extension.js').asText();
|
|
||||||
try{
|
try{
|
||||||
|
zip.load(data);
|
||||||
|
var str=zip.file('extension.js').asText();
|
||||||
_status.importingExtension=true;
|
_status.importingExtension=true;
|
||||||
eval(str);
|
eval(str);
|
||||||
_status.importingExtension=false;
|
_status.importingExtension=false;
|
||||||
|
@ -31184,7 +31184,7 @@
|
||||||
this.classList.add('button-downloading');
|
this.classList.add('button-downloading');
|
||||||
var progress=ui.create.div('.button-progress',this);
|
var progress=ui.create.div('.button-progress',this);
|
||||||
ui.create.div(progress);
|
ui.create.div(progress);
|
||||||
var url=lib.extensionURL+this.info[0]+'.zip';
|
var url=lib.extensionURL+this.filename+'.zip';
|
||||||
var onprogress=function(byte,total){
|
var onprogress=function(byte,total){
|
||||||
if(total){
|
if(total){
|
||||||
size=total;
|
size=total;
|
||||||
|
@ -31234,8 +31234,7 @@
|
||||||
var list=window.noname_extension_list;
|
var list=window.noname_extension_list;
|
||||||
delete window.noname_extension_list;
|
delete window.noname_extension_list;
|
||||||
loading.style.display='none';
|
loading.style.display='none';
|
||||||
for(var i=0;i<list.length;i++){
|
for(var i in list){
|
||||||
var info=list[i];
|
|
||||||
var node=ui.create.div('.videonode.menubutton.extension.large',page,clickExtension);
|
var node=ui.create.div('.videonode.menubutton.extension.large',page,clickExtension);
|
||||||
ui.create.div('.caption',list[i][0],node);
|
ui.create.div('.caption',list[i][0],node);
|
||||||
ui.create.div('.text.author','作者:'+list[i][1]+'<span>('+list[i][4]+')</span>',node);
|
ui.create.div('.text.author','作者:'+list[i][1]+'<span>('+list[i][4]+')</span>',node);
|
||||||
|
@ -31261,10 +31260,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
download.info=list[i];
|
download.info=list[i];
|
||||||
|
download.filename=i;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var a=ui.create.node('a',download);
|
var a=ui.create.node('a',download);
|
||||||
a.href=lib.extensionURL+list[i][0]+'.zip';
|
a.href=lib.extensionURL+i+'.zip';
|
||||||
a.download=true;
|
a.download=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue