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

38 lines
904 B
HTML
Raw Normal View History

2021-11-27 14:45:04 +00:00
<!--
mpvacious cards, version 5.0
Wed Jan 6 11:41:21 PM UTC 2021
Modified by Aleksa Sarai <cyphar@cyphar.com>.
-->
<header>
{{#MorphManFocus}}
<div class="tags">{{MorphManFocus}}</div>
{{/MorphManFocus}}
{{#Tags}}
<div class="tags">{{Tags}}</div>
{{/Tags}}
</header>
<div class="jpsentence" lang="ja">
{{morphHighlight:furigana:SentKanji}}
{{^SentKanji}}
<nokana>{{kanji:SentFurigana}}</nokana>
{{/SentKanji}}
</div>
<div style="display:none;">
<div id="pitchnum_hidden">{{VocabPitchNum}}</div>
<div id="kanaword_hidden">{{kana:VocabFurigana}}</div>
</div>
<script>
function boxTargetWord() {
for (word of document.querySelectorAll(".jpsentence b, .jpsentence strong")) {
word.style["border"] = "1px";
word.style["border-style"] = "dotted";
word.style["border-color"] = "#9a9a9a9a";
2021-11-27 14:45:04 +00:00
}
}
document.addEventListener('DOMContentLoaded', boxTargetWord(), false);
</script>