◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:NewCharPreview”的版本间的差异
第144行: | 第144行: | ||
if (document.querySelector("#section_0")) { | if (document.querySelector("#section_0")) { | ||
document.querySelector("#plist").style.display = "none"; | document.querySelector("#plist").style.display = "none"; | ||
+ | document.getElementById("pbutton").style.cssText = "width: 9em;height: 2.5em;border: none;color: white;border-radius: 4px;background-color: transparent"; | ||
+ | document.getElementById("pbutton").innerText = "选择人形"; | ||
} else { | } else { | ||
document.querySelector("#pbutton").style.display = "none"; | document.querySelector("#pbutton").style.display = "none"; | ||
+ | charList.foreach(function(item) { | ||
+ | item.style.textAlign = "center"; | ||
+ | }); | ||
} | } | ||
− | + | charList.foreach(function(item) { | |
− | + | item.onclick = selectTab; | |
− | } | + | }); |
}) | }) | ||
第155行: | 第160行: | ||
if (document.querySelector("#pcontent").style.display == "none") { | if (document.querySelector("#pcontent").style.display == "none") { | ||
document.querySelector("#pcontent").style.display = "flex"; | document.querySelector("#pcontent").style.display = "flex"; | ||
+ | } | ||
+ | |||
+ | if (document.getElementById("section_0") { | ||
+ | document.getElementById("plist").style.display = "none"; | ||
+ | document.getElementById("pbutton").innerText = this.innerText; | ||
} | } | ||
第243行: | 第253行: | ||
} | } | ||
− | this.style.borderBottomColor = "#F4C430"; | + | if (!document.getElementById("section_0")) { |
− | + | this.style.borderBottomColor = "#F4C430"; | |
+ | this.style.color = "white"; | ||
+ | } | ||
+ | |||
+ | this.blur(); | ||
} | } | ||