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

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

来自少前百科GFwiki
跳转至: 导航搜索
 
(未显示2个用户的4个中间版本)
第437行: 第437行:
 
<label for="Obtainph"><input type="checkbox" id="Obtainph" class="filter_item" /><div>排行奖励</div></label>
 
<label for="Obtainph"><input type="checkbox" id="Obtainph" class="filter_item" /><div>排行奖励</div></label>
 
<label for="Obtainxz"><input type="checkbox" id="Obtainxz" class="filter_item" /><div>心智升级</div></label>
 
<label for="Obtainxz"><input type="checkbox" id="Obtainxz" class="filter_item" /><div>心智升级</div></label>
<label for="Obtainhs"><input type="checkbox" id="Obtainhs" class="filter_item" /><div>黑市商店</div></label>
+
<label for="Obtainhs"><input type="checkbox" id="Obtainhs" class="filter_item" /><div>机密商店</div></label>
 
<label for="Obtainmy"><input type="checkbox" id="Obtainmy" class="filter_item" /><div>每月签到</div></label>
 
<label for="Obtainmy"><input type="checkbox" id="Obtainmy" class="filter_item" /><div>每月签到</div></label>
 +
<label for="Obtainhy"><input type="checkbox" id="Obtainhy" class="filter_item" /><div>灰域探查</div></label>
 
</div>
 
</div>
  
第470行: 第471行:
 
var gunTypeStr = ["特殊配件", "特殊弹匣", "特殊人形"];
 
var gunTypeStr = ["特殊配件", "特殊弹匣", "特殊人形"];
 
var gunDollStr = ["HG", "SMG", "AR", "RF", "MG", "SG"];
 
var gunDollStr = ["HG", "SMG", "AR", "RF", "MG", "SG"];
var gunGetStr = ["主线战役", "常驻活动", "限时活动", "排行奖励", "心智升级", "黑市商店" , "每月签到"];
+
var gunGetStr = ["主线战役", "常驻活动", "限时活动", "排行奖励", "心智升级", "机密商店" , "每月签到", "灰域探查"];
  
 
var equipCheckbox = document.querySelectorAll('.filter_item');
 
var equipCheckbox = document.querySelectorAll('.filter_item');
第587行: 第588行:
  
 
function toDollName(i) { //Name模板
 
function toDollName(i) { //Name模板
    var dollstr;
 
 
     var thisDoll = equipElement[equipTarget[i]];
 
     var thisDoll = equipElement[equipTarget[i]];
 
+
     let tdolls = [];
     var fontColor = "#EAEAEA";
+
     for (let i = 1; i < 4; i++) {
     var shadowColor = "#EAEAEA";
+
        let tdoll = thisDoll.dataset['equipDollname'+i];
    switch (thisDoll.getAttribute('data-equip-dollstar')) {
+
        if (tdoll !== undefined) tdolls.push(`<a href="/w/${tdoll.replace(' ', '_')}">${tdoll}</a>`);
        case "1": fontColor = "#dfb6ff"; shadowColor = "#dfb6ff"; break;
 
        case "2": fontColor = "#dddddd"; shadowColor = "#dddddd"; break;
 
        case "3": fontColor = "#6BDFCE"; shadowColor = "#6BDFCE"; break;
 
        case "4": fontColor = "#D6E35A"; shadowColor = "#D6E35A"; break;
 
        case "5": fontColor = "#FFCD4A"; shadowColor = "#FFBD0D"; break;
 
        default: break;
 
    }
 
 
 
    dollstr = "<a href=\"../w/" + thisDoll.getAttribute('data-equip-dollname1') + "\">"
 
    dollstr += "<span style=\"color:" + fontColor + "; text-shadow: 0px 0px 3px " + shadowColor + "; display:inline-block;\"><small><sup>"
 
    dollstr += thisDoll.getAttribute('data-equip-dolltype') + "<\/sup><\/small>&nbsp;" + thisDoll.getAttribute('data-equip-dollname1') + "<\/span><\/a>"
 
 
 
    if (equipElement[equipTarget[i]].getAttribute('data-equip-dollname2') != false) {
 
        var fontColor2 = "#EAEAEA";
 
        var shadowColor2 = "#EAEAEA";
 
        switch (thisDoll.getAttribute('data-equip-dollstar2')) {
 
            case "1": fontColor2 = "#dfb6ff"; shadowColor2 = "#dfb6ff"; break;
 
            case "2": fontColor2 = "#dddddd"; shadowColor2 = "#dddddd"; break;
 
            case "3": fontColor2 = "#6BDFCE"; shadowColor2 = "#6BDFCE"; break;
 
            case "4": fontColor2 = "#D6E35A"; shadowColor2 = "#D6E35A"; break;
 
            case "5": fontColor2 = "#FFCD4A"; shadowColor2 = "#FFBD0D"; break;
 
            default: break;
 
        }
 
       dollstr += "<br><a href=\"../w/" + thisDoll.getAttribute('data-equip-dollname2') + "\">"
 
        dollstr += "<span style=\"color:" + fontColor2 + "; text-shadow: 0px 0px 3px " + shadowColor2 + "; display:inline-block;\"><small><sup>"
 
        dollstr += thisDoll.getAttribute('data-equip-dolltype') + "<\/sup><\/small>&nbsp;" + thisDoll.getAttribute('data-equip-dollname2') + "<\/span><\/a>"
 
    }
 
 
 
    if (equipElement[equipTarget[i]].getAttribute('data-equip-dollname3') != false) {
 
        dollstr += "<br><a href=\"../w/" + thisDoll.getAttribute('data-equip-dollname3') + "\">"
 
        dollstr += "<span style=\"color:" + fontColor + "; text-shadow: 0px 0px 3px " + shadowColor + "; display:inline-block;\"><small><sup>"
 
        dollstr += thisDoll.getAttribute('data-equip-dolltype') + "<\/sup><\/small>&nbsp;" + thisDoll.getAttribute('data-equip-dollname3') + "<\/span><\/a>"
 
 
     }
 
     }
 
+
     return tdolls.join(`<br>`);
     return dollstr;
 
 
}
 
}
  

2024年4月13日 (六) 01:34的最新版本