更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent 8900fe9ef6
commit 350e4e8455
  1. 40
      SrcJu.js

@ -140,7 +140,18 @@ function yiji() {
return 'toast://运行模式已切换为:' + input; return 'toast://运行模式已切换为:' + input;
}, cfgfile, Juconfig,it) }, cfgfile, Juconfig,it)
} }
}) }).concat([{
title:getItem('runtypebtn')?"关界面按钮":"开界面按钮",
js: $.toString(()=>{
if(getItem('runtypebtn')){
clearItem('runtypebtn');
}else{
setItem('runtypebtn',1);
}
refreshPage(false);
return "hiker://empty";
})
}])
} }
}) })
if(parse&&parse["排行"]){ if(parse&&parse["排行"]){
@ -255,18 +266,23 @@ function yiji() {
d.push({ d.push({
col_type: 'blank_block' col_type: 'blank_block'
}) })
runModes.forEach((it) =>{ if(getItem('runtypebtn')){
runModes.forEach((it) =>{
d.push({
title: Juconfig["runMode"]==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it,
url: $('#noLoading#').lazyRule((cfgfile,Juconfig,input) => {
Juconfig["runMode"] = input;
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false);
return 'toast://运行模式已切换为:' + input;
}, cfgfile, Juconfig ,it),
col_type: 'scroll_button'
});
})
d.push({ d.push({
title: Juconfig["runMode"]==it?`““””<b><span style="color: #3399cc">`+it+`</span></b>`:it, col_type: 'blank_block'
url: $('#noLoading#').lazyRule((cfgfile,Juconfig,input) => { })
Juconfig["runMode"] = input; }
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false);
return 'toast://运行模式已切换为:' + input;
}, cfgfile, Juconfig ,it),
col_type: 'scroll_button'
});
})
putMyVar(runMode+"_"+sourcename, "1"); putMyVar(runMode+"_"+sourcename, "1");
} }
try{ try{

Loading…
Cancel
Save