◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:Tdollquery2”的版本间的差异
Mikumikuer(讨论 | 贡献) (撤销Mikumikuer(讨论)的版本40854) (1个标签:撤销) |
Mikumikuer(讨论 | 贡献) |
||
第303行: | 第303行: | ||
</tbody></table></div></div> | </tbody></table></div></div> | ||
<div> | <div> | ||
− | <button | + | <button class="clearSelect">清除</button> |
− | <button | + | <button class="invertSelect">反选</button> |
− | <label for="HGDoll"><input type="checkbox" id="HGDoll" | + | <label for="HGDoll"><input type="checkbox" id="HGDoll" class="filter_item" /><div>手枪人形</div></label> |
− | <label for="SMGDoll"><input type="checkbox" id="SMGDoll" | + | <label for="SMGDoll"><input type="checkbox" id="SMGDoll" class="filter_item" /><div>冲锋枪人形</div></label> |
− | <label for="ARDoll"><input type="checkbox" id="ARDoll" | + | <label for="ARDoll"><input type="checkbox" id="ARDoll" class="filter_item" /><div>突击步枪人形</div></label> |
− | <label for="RFDoll"><input type="checkbox" id="RFDoll" | + | <label for="RFDoll"><input type="checkbox" id="RFDoll" class="filter_item" /><div>步枪人形</div></label> |
− | <label for="MGDoll"><input type="checkbox" id="MGDoll" | + | <label for="MGDoll"><input type="checkbox" id="MGDoll" class="filter_item" /><div>机枪人形</div></label> |
− | <label for="SGDoll"><input type="checkbox" id="SGDoll" | + | <label for="SGDoll"><input type="checkbox" id="SGDoll" class="filter_item" /><div>霰弹枪人形</div></label> |
</div> | </div> | ||
<div> | <div> | ||
− | <button | + | <button class="clearSelect">清除</button> |
− | <button | + | <button class="invertSelect">反选</button> |
− | <label for="rarity2"><input type="checkbox" id="rarity2" | + | <label for="rarity2"><input type="checkbox" id="rarity2" class="filter_item" /><div>★★</div></label> |
− | <label for="rarity3"><input type="checkbox" id="rarity3" | + | <label for="rarity3"><input type="checkbox" id="rarity3" class="filter_item" /><div>★★★</div></label> |
− | <label for="rarity4"><input type="checkbox" id="rarity4" | + | <label for="rarity4"><input type="checkbox" id="rarity4" class="filter_item" /><div>★★★★</div></label> |
− | <label for="rarity5"><input type="checkbox" id="rarity5" | + | <label for="rarity5"><input type="checkbox" id="rarity5" class="filter_item" /><div>★★★★★</div></label> |
− | <label for="rarity6"><input type="checkbox" id="rarity6" | + | <label for="rarity6"><input type="checkbox" id="rarity6" class="filter_item" /><div>★★★★★★</div></label> |
− | <label for="rarity1"><input type="checkbox" id="rarity1" | + | <label for="rarity1"><input type="checkbox" id="rarity1" class="filter_item" /><div>★EXTRA</div></label> |
</div> | </div> | ||
<div> | <div> | ||
− | <button | + | <button class="clearSelect">清除</button> |
− | <button | + | <button class="invertSelect">反选</button> |
− | <label for="buildObtain"><input type="checkbox" id="buildObtain" | + | <label for="buildObtain"><input type="checkbox" id="buildObtain" class="filter_item" /><div>建造获得</div></label> |
− | <label for="dropObtain"><input type="checkbox" id="dropObtain" | + | <label for="dropObtain"><input type="checkbox" id="dropObtain" class="filter_item" /><div>救援获得</div></label> |
− | <label for="otherObtain"><input type="checkbox" id="otherObtain" | + | <label for="otherObtain"><input type="checkbox" id="otherObtain" class="filter_item" /><div>其他/特殊</div></label> |
</div> | </div> | ||
<div> | <div> | ||
− | <button | + | <button class="clearSelect">清除</button> |
− | <button | + | <button class="invertSelect">反选</button> |
− | <label for="DGMindupgraded"><input type="checkbox" id="DGMindupgraded" | + | <label for="DGMindupgraded"><input type="checkbox" id="DGMindupgraded" class="filter_item" /><div>心智升级</div></label> |
− | <label for="nonDGMindupgraded"><input type="checkbox" id="nonDGMindupgraded" | + | <label for="nonDGMindupgraded"><input type="checkbox" id="nonDGMindupgraded" class="filter_item" /><div>普通人形</div></label> |
</div> | </div> | ||
<div id="TDollQuery"><input type="text" placeholder="输入枪名" id="inputQuery"/><button type="button" onclick="clearItem();apply_filter();">清除</button></div> | <div id="TDollQuery"><input type="text" placeholder="输入枪名" id="inputQuery"/><button type="button" onclick="clearItem();apply_filter();">清除</button></div> | ||
<div style="float:right;clear: right;"> | <div style="float:right;clear: right;"> | ||
− | <label for="MOD3Data"><input type="checkbox" id="MOD3Data" checked="true" data-freeze="true" | + | <label for="MOD3Data"><input type="checkbox" id="MOD3Data" checked="true" data-freeze="true" class="filter_item" /><div>显示MOD3数据</div></label> |
− | <label for="iconOnly"><input type="checkbox" id="iconOnly" data-freeze="true" | + | <label for="iconOnly"><input type="checkbox" id="iconOnly" data-freeze="true" class="filter_item" /><div>精简模式</div></label> |
</div> | </div> | ||
</div> | </div> | ||
第522行: | 第522行: | ||
$("#cur-page").on("change",function(){change_page(this)}); | $("#cur-page").on("change",function(){change_page(this)}); | ||
$("#per-page").on("change",function(){apply_filter()}); | $("#per-page").on("change",function(){apply_filter()}); | ||
+ | |||
function debug_marker(key,data){ | function debug_marker(key,data){ | ||
if(!data.error){return ""}else if(!!data.error[key]){return `class="${data.error[key]}"`} | if(!data.error){return ""}else if(!!data.error[key]){return `class="${data.error[key]}"`} | ||
第583行: | 第584行: | ||
apply_filter(); | apply_filter(); | ||
} | } | ||
+ | |||
+ | $('.clearSelect').on("click",function(){clearSelect(this)}); | ||
+ | $('.invertSelect').on("click",function(){invertSelect(this)}); | ||
+ | |||
function clearItem(){inputText.value = ""} //清除输入框内容 | function clearItem(){inputText.value = ""} //清除输入框内容 | ||
第777行: | 第782行: | ||
$("#inputQuery").on('input propertychange',debounce(250, function (){apply_filter();})); | $("#inputQuery").on('input propertychange',debounce(250, function (){apply_filter();})); | ||
− | + | $('.filter_item').on("change",function(){apply_filter()}); | |
function run_diagnose(){ | function run_diagnose(){ | ||
var diagnose_result=new Array(); | var diagnose_result=new Array(); |