打开主菜单

少前百科GFwiki β

更改

Widget:Tdollquery

添加719字节2019年9月30日 (一) 09:18
无编辑摘要
<input type="checkbox" id="rarity4" onclick="apply_filter()" /><label for="rarity4">★★★★</label>
<input type="checkbox" id="rarity5" onclick="apply_filter()" /><label for="rarity5">★★★★★</label>
<input type="checkbox" id="rarity6" onclick="apply_filter()" /><label for="rarity6">★★★★★★</label> <input type="checkbox" id="rarity1" onclick="apply_filter()" /><label for="rarity1">★EXTRA</label>
</p>
<p>
</div>
<div style="margin: 0.5rem;">
<input type="checkbox" id="iconOnly" onclick="apply_filter()" /><label for="iconOnly">精简模式</label><span id="resultBox" style="margin-leftright:1rem0.5rem;float:right">数据载入中,请稍后<span>
</div>
<!--{if ($lite)==1}-->
} catch(e){
console.warn("Failed load tableSorter ,try to Reload");
mw$.loader.loadgetScript('"/images/jslib/jquery.tablesorter'); setTimeout(1000.js",function(){console.log('%ctableSorter Reloaded!',"color:green;");$("table#Tdolltable").tablesorter(sorter_order())});
}
}
querylist.push(transdata[i]);
}
querylist.sort(function (a, b){return b.dataset.timestamp - a.dataset.timestamp});
loaded = true;
reloadstop = false;
querylist.push(transdata[i]);
}
querylist.sort(function (a, b){return b.dataset.timestamp - a.dataset.timestamp})
$(".disabled").removeClass("disabled");
reloadstop = false;
var rCheck = new Array();
var nt=0;
for (var i = 21;i <= 6;i++){
rCheck[i] = document.getElementById('rarity'+i).checked;
if (rCheck[i]) {nt++}
}
function type_check(query){ //稀有度判断枪种判断
var tCheck = new Array();
var nt=0;
return mod_check(cond)&&text_check(cond)&&rarity_check(cond)&&type_check(cond)&&tiles_check(cond)&&obtainMethod_check(cond);
}
 
function classIconFilter(){ //人形图标筛选
var tab = decodeURIComponent(location.hash.replace('#', ''))+"Doll";
clearSelect(document.getElementById(tab));
document.getElementById(tab).checked = 'true';
apply_filter();location.hash='';
}
 
$(window).on('hashchange', function(e){if(decodeURIComponent(location.hash.replace('#', ''))!=''){classIconFilter();}});
$("#inputQuery").on('input propertychange',debounce(250, function (){apply_filter();}));
</script>
14,357
个编辑