◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:SkinQuery/js”的版本间的差异
第286行: | 第286行: | ||
for(let j = 0 ; j < 12; j++){ | for(let j = 0 ; j < 12; j++){ | ||
− | if(!$(suitElement[i]).attr("data-num" + String(j)) || (mode == "suitOnly")) continue; | + | if(!$(suitElement[i]).attr("data-num" + String(j)) || (mode == "suitOnly") || !skin_judge(i, j)) continue; |
− | if( | + | if(mode == "textMode") html_text += creat_card_text(i, j); |
+ | else html_text += creat_card(i, j, mode); | ||
} | } | ||
html_text += `<\/div>`; | html_text += `<\/div>`; | ||
第347行: | 第348行: | ||
return card_text; | return card_text; | ||
+ | } | ||
+ | |||
+ | function creat_card_text(i, j){ | ||
+ | let bcard_text = $(suitElement[i]).attr("data-bcard" + String(j)); | ||
+ | let card_text = `<div class="skindolllink skinTextOnly"><div class="skindoll">` + $(suitElement[i]).attr("data-doll" + String(j)) + `<\/div>`; | ||
+ | card_text += `<div class="skinname">` + $(suitElement[i]).attr("data-name" + String(j)) + `<\/div>`; | ||
+ | card_text += `${(bcard_text == "0") ? "X" : bcard_text}黑卡 ${$(suitElement[i]).attr("data-gain" + String(j))}${$(suitElement[i]).attr("data-item" + String(j))}`; | ||
+ | card_text += `</div>` | ||
+ | return card_text | ||
} | } | ||