AnkiNoteTemplate/templates/Japanese Mined Sentences (cyphar)/Production/front.html

21 lines
677 B
HTML
Raw Normal View History

2021-11-27 14:45:04 +00:00
{{#MakeProductionCard}}
{{#SentKanji}}
<header>{{#Tags}}<div class="tags">{{Tags}}</div>{{/Tags}}</header>
{{#Image}}<div class="images" >{{Image}}</div>{{/Image}}
<div class="jpsentence production">{{furigana:SentFurigana}}</div>
<div style="text-align: center;">{{VocabAudio}}{{SentAudio}}</div>
<script>
document.addEventListener('DOMContentLoaded', threeDots(), false);
function threeDots() {
for (const hidden of document.querySelectorAll(".production b, .production strong")) {
hidden.style.visibility = "visible";
hidden.innerText = "【" + hidden.innerText.replace(/[^ぁ-んァ-ン]/g, "") + "】";
2021-11-27 14:45:04 +00:00
}
}
</script>
{{/SentKanji}}
{{/MakeProductionCard}}