◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:Equipquery”的版本间的差异
(change class) |
(测试) |
||
第425行: | 第425行: | ||
<button class="clearSelect">清除</button> | <button class="clearSelect">清除</button> | ||
<button class="invertSelect">反选</button> | <button class="invertSelect">反选</button> | ||
− | <label for="type1gx"><input type="checkbox" id="type1gx" class="filter_item" /><div> | + | <label for="type1gx"><input type="checkbox" id="type1gx" class="filter_item" /><div>瞄具</div></label> |
− | <label for="type1qx"><input type="checkbox" id="type1qx" class="filter_item" /><div> | + | <label for="type1qx"><input type="checkbox" id="type1qx" class="filter_item" /><div>弹匣</div></label> |
− | <label for="type1hd"><input type="checkbox" id="type1hd" class="filter_item" /><div> | + | <label for="type1hd"><input type="checkbox" id="type1hd" class="filter_item" /><div>人形装备</div></label> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
<div> | <div> | ||
第483行: | 第461行: | ||
</div></div><BR> | </div></div><BR> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
var equipElement = document.querySelectorAll('.equipdata'); | var equipElement = document.querySelectorAll('.equipdata'); | ||
equipElement.forEach(function(el,i){el.dataset.nameIngame=el.dataset.nameIngame.replaceAll("_"," ")}) | equipElement.forEach(function(el,i){el.dataset.nameIngame=el.dataset.nameIngame.replaceAll("_"," ")}) | ||
第491行: | 第470行: | ||
/* HG:0 SMG:1 AR:2 RF:3 MG:4 SG:5 */ | /* HG:0 SMG:1 AR:2 RF:3 MG:4 SG:5 */ | ||
var gunDollStr = ["HG", "SMG", "AR", "RF", "MG", "SG"]; | var gunDollStr = ["HG", "SMG", "AR", "RF", "MG", "SG"]; | ||
− | + | var gunTypeStr = ["特殊瞄具", "特殊弹匣", "特殊人形"]; | |
− | var | ||
− | |||
− | |||
− | |||
− | |||
− | |||
var gunGetStr = ["主线战役", "常驻活动", "限时活动", "排行奖励", "心智升级", "黑市商店" , "每月签到"]; | var gunGetStr = ["主线战役", "常驻活动", "限时活动", "排行奖励", "心智升级", "黑市商店" , "每月签到"]; | ||
第525行: | 第498行: | ||
function checkGunTypeStr(i) { //装备种类 | function checkGunTypeStr(i) { //装备种类 | ||
− | |||
var equipClass2 = equipElement[i].getAttribute('data-equip-class2'); | var equipClass2 = equipElement[i].getAttribute('data-equip-class2'); | ||
− | for (var j = 0; j < | + | for (var j = 0; j < gunTypeStr.length; j++) { |
if (equipCheckbox[j + gunDollStr.length].checked == false) continue; | if (equipCheckbox[j + gunDollStr.length].checked == false) continue; | ||
− | if ( | + | if (equipClass2 == gunTypeStr[j]) { |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
checkGunGetStr(i); | checkGunGetStr(i); | ||
return; | return; | ||
第552行: | 第510行: | ||
function checkGunGetStr(i) { //获得途径 | function checkGunGetStr(i) { //获得途径 | ||
for (var j = 0; j < gunGetStr.length; j++) { | for (var j = 0; j < gunGetStr.length; j++) { | ||
− | if (equipCheckbox[j + gunDollStr.length + | + | if (equipCheckbox[j + gunDollStr.length + gunTypeStr.length].checked == false) continue; |
if (equipElement[i].getAttribute('data-obtain') == gunGetStr[j]) { | if (equipElement[i].getAttribute('data-obtain') == gunGetStr[j]) { | ||
equipPrep(i); | equipPrep(i); |