AnkiNoteTemplate/templates/Japanese sentences/Recognition/back.html

65 lines
2 KiB
HTML
Raw Normal View History

2021-11-27 14:58:45 +00:00
<div class="wrap">
<div class="fside">{{FrontSide}}</div>
2021-12-18 23:12:13 +00:00
<div class="sent-center">
2021-11-27 14:58:45 +00:00
<div class="jpsentence" lang="ja">
{{edit:furigana:SentFurigana}}
{{^SentFurigana}}{{edit:furigana:SentKanji}}{{/SentFurigana}}
</div>
{{#SentEng}}
2021-12-20 19:47:56 +00:00
<div class="ensentence" lang="en">
2021-11-27 14:58:45 +00:00
{{hint:SentEng}}
</div>
{{/SentEng}}
2021-12-18 23:12:13 +00:00
</div>
2021-11-27 14:58:45 +00:00
<div class="vocab">
{{VocabAudio}}{{SentAudio}}
{{VocabPitchPattern}}{{^VocabPitchPattern}}{{kana:VocabFurigana}}{{/VocabPitchPattern}}
{{#VocabPitchNum}}<span class="tags"
id="pitchnum">{{VocabPitchNum}}</span>{{/VocabPitchNum}}{{#VocabKanji}}【{{kanji:VocabKanji}}】{{/VocabKanji}}
</div>
{{#VocabDef}}
<div class="definitions">{{edit:furigana:VocabDef}}</div>
{{/VocabDef}}
{{#Notes}}
<div class="notes">
<div class="tags">Notes</div>
<div>{{furigana:Notes}}</div>
</div>
{{/Notes}}
{{#Image}}<div class="images">{{Image}}</div>{{/Image}}
<hr>
<footer>{{#SentKanji}}<a title="Translate with SimplyTranslate" href="https://translate.metalune.xyz/?engine=google&text={{text:kanji:SentKanji}}&sl=ja&tl=en">Translate</a><a href="https://jisho.org/search?keyword={{text:kanji:SentKanji}}"
title="Sentence on Jisho">Jisho</a><a href="https://www.google.co.jp/search?q={{text:kanji:SentKanji}}&tbm=isch"
title="Search images">Images</a>{{/SentKanji}}{{#VocabKanji}}<a
href="http://www.weblio.jp/content/{{text:VocabKanji}}" title="Vocab on Weblio">Weblio</a><a
href="https://wadoku.de/search/?q={{text:VocabKanji}}" title="Vocab on Wadoku">Wadoku</a>{{/VocabKanji}}
</footer>
</div> <!-- /wrap -->
<script>
2021-12-25 03:12:08 +00:00
function tweak_reveal_text() {
const elem = document.querySelector("div.ensentence > a.hint");
if (elem) {
elem.innerText = "Reveal English translation";
}
}
2021-11-27 14:58:45 +00:00
function removePitchBrackets() {
const tags = document.getElementById("pitchnum");
if (tags !== null) {
tags.innerHTML = tags.innerHTML.replace(/[\[\]]/g, "");
}
}
markPitch()
removePitchBrackets()
2021-12-25 03:12:08 +00:00
tweak_reveal_text()
2021-11-27 14:58:45 +00:00
</script>