diff --git a/templates/Japanese words/Recognition/front.html b/templates/Japanese words/Recognition/front.html index 8e93635..c96f385 100644 --- a/templates/Japanese words/Recognition/front.html +++ b/templates/Japanese words/Recognition/front.html @@ -34,39 +34,23 @@ Thu Feb 4 01:06:07 AM UTC 2021 } function splitTagDiv() { - const header = document.getElementsByTagName("header")[0]; - if (!header) return; - const tags = `{{Tags}}`.split(" "); - header.innerHTML = ""; - for (const tag of tags) { - const tag_elem = document.createElement("div"); - tag_elem.className = "tags"; - tag_elem.innerHTML = tag; - header.appendChild(tag_elem); + const header = document.querySelector("header"); + if (header) { + const tags = `{{Tags}}`.split(" "); + header.innerHTML = ""; + for (const tag of tags) { + if (tag.includes("DisableGyousyo")) { + continue; + } + const tag_elem = document.createElement("div"); + tag_elem.className = "tags"; + tag_elem.innerHTML = tag; + header.appendChild(tag_elem); + } } } - splitTagDiv() highlightNames() applyQuizFont() - -