minor design changes
This commit is contained in:
2
main.js
2
main.js
@@ -153,6 +153,7 @@ function showPopup(ogword, word, quirks = "") {
|
||||
badge.classList.add("badge");
|
||||
try {
|
||||
badge.style.backgroundColor = quirkBadges[quirk]["color"];
|
||||
badge.style.boxShadow = "0px 0px 4px " + quirkBadges[quirk]["color"] + "cc";
|
||||
badge.innerText = quirkBadges[quirk]["name"];
|
||||
badge.onclick = () => {
|
||||
p.querySelector("h1").innerText = quirkBadges[quirk]["name"];
|
||||
@@ -163,6 +164,7 @@ function showPopup(ogword, word, quirks = "") {
|
||||
}
|
||||
} catch (e) {
|
||||
badge.style.backgroundColor = quirkBadges["unknown-tag"]["color"];
|
||||
badge.style.boxShadow = "0px 0px 4px #" + quirkBadges["unknown-tag"]["color"] + "cc";
|
||||
badge.innerText = quirkBadges["unknown-tag"]["name"];
|
||||
}
|
||||
p.querySelector("#popup-quirks").appendChild(badge);
|
||||
|
||||
Reference in New Issue
Block a user