AnkiNoteTemplate/templates/Japanese kana/Production/front.html
2021-11-27 17:57:09 +03:00

12 lines
352 B
HTML

<div class="front">
<span id="charType">{{edit:Hint}}</span>
{{edit:Romaji}}{{edit:Pronunciation}}
</div>
<script>
const hint = document.getElementById("charType");
if (hint && hint.innerHTML == "katakana")
hint.style.color = "#ff6207";
else if (hint.innerHTML == "hiragana")
hint.style.color = "#637c8b";
</script>