14,357
个编辑
◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
更改
无编辑摘要
<input type="checkbox" id="rarity5" onclick="apply_filter()" /><label for="rarity5">★★★★★</label>
<input type="checkbox" id="rarity6" onclick="apply_filter()" /><label for="rarity6">★EXTRA</label>
</p>
<p>
<button onclick="clearSelect(this)">清除</button>
<button onclick="invertSelect(this)">反选</button>
<input type="checkbox" id="buildObtain" onclick="apply_filter()" /><label for="buildObtain">建造获得</label>
<input type="checkbox" id="dropObtain" onclick="apply_filter()" /><label for="dropObtain">救援获得</label>
<input type="checkbox" id="otherObtain" onclick="apply_filter()" /><label for="buildObtain">其他/特殊</label>
</p>
<p>
/ 影响格查询部分 END /
/----------------------*/
function obtainMethod_check(query){ //稀有度判断
var checkStat = [];
checkStat.push(document.getElementById('buildObtain').checked,document.getElementById('dropObtain').checked,document.getElementById('otherObtain').checked);
var j = 0;
for (var i = 0;i<checkStat.length;i++){if(checkStat[i]==false){continue}else{j++}}
if (j==0){return true;}
if(checkStat[0]==true){if(query.dataset.build==1){return true;}}
if(checkStat[1]==true){if(query.dataset.drop==1){return true;}}
if(checkStat[2]==true){if(query.dataset.special==1){return true;}}
return false;
}
function filter_box(cond){ //筛选条件汇总
return mod_check(cond)&&text_check(cond)&&rarity_check(cond)&&type_check(cond)&&tiles_check(cond)&&obtainMethod_check(query);
}