◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:Tdollquery2”的版本间的差异
Mikumikuer(讨论 | 贡献) |
Mikumikuer(讨论 | 贡献) |
||
第4行: | 第4行: | ||
display: inline-block; | display: inline-block; | ||
width: 100px; | width: 100px; | ||
+ | } | ||
+ | .disabled { | ||
+ | opacity: 0.4; | ||
+ | pointer-events: none; | ||
} | } | ||
div.tileSearchCond:first-of-type { | div.tileSearchCond:first-of-type { | ||
第584行: | 第588行: | ||
} | } | ||
apply_filter(); | apply_filter(); | ||
+ | } | ||
+ | function rarityDisable(box){ | ||
+ | var modstat = box.checked; | ||
+ | var target = document.querySelector('#rarity6'); | ||
+ | if (!modstat){target.checked = false;target.classList.add("disabled") | ||
+ | }else{target.checked = true;target.classList.remove("disabled")} | ||
} | } | ||
第590行: | 第600行: | ||
$('#TDollQuery button').on("click",function(){clearItem();apply_filter();}); | $('#TDollQuery button').on("click",function(){clearItem();apply_filter();}); | ||
$('#buttonContainer>span>a').on("click",function(){clearSelect(this.parentNode)}) | $('#buttonContainer>span>a').on("click",function(){clearSelect(this.parentNode)}) | ||
+ | $('#MOD3Data').on("click",function(){rarityDisable(this);apply_filter();}) | ||
function clearItem(){inputText.value = ""} //清除输入框内容 | function clearItem(){inputText.value = ""} //清除输入框内容 |