◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:Tdollquery2”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
第328行: 第328行:
 
<label for="dropObtain"><input type="checkbox" id="dropObtain" class="filter_item" /><div>救援获得</div></label>
 
<label for="dropObtain"><input type="checkbox" id="dropObtain" class="filter_item" /><div>救援获得</div></label>
 
<label for="otherObtain"><input type="checkbox" id="otherObtain" class="filter_item" /><div>特殊(常驻获得)</div></label>
 
<label for="otherObtain"><input type="checkbox" id="otherObtain" class="filter_item" /><div>特殊(常驻获得)</div></label>
 +
<label for="specialObtain"><input type="checkbox" id="specialObtain" class="filter_item" /><div>限定人形(非常驻)</div></label>
 
</div>
 
</div>
 
<div>
 
<div>
第759行: 第760行:
 
function obtainMethod_check(query){ //获取方式
 
function obtainMethod_check(query){ //获取方式
 
var checkStat = [];
 
var checkStat = [];
checkStat.push(document.getElementById('buildObtain').checked,document.getElementById('dropObtain').checked,document.getElementById('otherObtain').checked);  
+
checkStat.push(document.getElementById('buildObtain').checked,document.getElementById('dropObtain').checked,document.getElementById('otherObtain').checked,document.getElementById('specialObtain').checked);  
 
var j = 0;
 
var j = 0;
 
for (var i = 0;i<checkStat.length;i++){if(checkStat[i]==false){continue}else{j++}}
 
for (var i = 0;i<checkStat.length;i++){if(checkStat[i]==false){continue}else{j++}}
第766行: 第767行:
 
if(checkStat[1]==true){if(query.obtainDrop==1){return true;}}
 
if(checkStat[1]==true){if(query.obtainDrop==1){return true;}}
 
if(checkStat[2]==true){if(query.obtainSpecial==1){return true;}}
 
if(checkStat[2]==true){if(query.obtainSpecial==1){return true;}}
 +
if(checkStat[3]==true){if(query.obtainSpecial==""&&query.obtainDrop==""&&query.obtainBuild==""){return true;}}
 
return false;
 
return false;
 
}
 
}

2020年5月10日 (日) 15:41的版本