From 82db88362cd8e9a73968618ccb2c2e7aa5132d4c Mon Sep 17 00:00:00 2001 From: Feripe-a <84395172+Feripe-a@users.noreply.github.com> Date: Sun, 2 Jan 2022 16:34:13 +0000 Subject: [PATCH] Update back.html --- .../Japanese fallback/Recognition/back.html | 106 +++++++++--------- 1 file changed, 56 insertions(+), 50 deletions(-) diff --git a/templates/Japanese fallback/Recognition/back.html b/templates/Japanese fallback/Recognition/back.html index 4e70039..5f87c4a 100644 --- a/templates/Japanese fallback/Recognition/back.html +++ b/templates/Japanese fallback/Recognition/back.html @@ -1,57 +1,63 @@ -
{{FrontSide}}
-
-
- {{morphHighlight:furigana:SentFurigana}} - {{^SentFurigana}}{{furigana:SentKanji}}{{/SentFurigana}} -
+
+
{{FrontSide}}
-{{#SentEng}} -
-
eng
-
- {{SentEng}} -
-
-{{/SentEng}} +
+
+ {{edit:furigana:SentFurigana}} + {{^SentFurigana}}{{edit:furigana:SentKanji}}{{/SentFurigana}} +
+ {{#SentEng}} +
{{hint:SentEng}}
+ {{/SentEng}} +
-
-{{VocabAudio}}{{SentAudio}} -{{VocabPitchPattern}}{{^VocabPitchPattern}}{{kana:VocabFurigana}}{{/VocabPitchPattern}} -{{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}}{{#VocabKanji}}【{{kanji:VocabKanji}}】{{/VocabKanji}} -
+
+ {{VocabAudio}}{{SentAudio}}{{VocabPitchPattern}} + {{^VocabPitchPattern}}{{text:kana:VocabFurigana}}{{/VocabPitchPattern}} + {{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}} + {{#VocabKanji}}【{{text:kanji:VocabKanji}}】{{/VocabKanji}} +
-{{#VocabDef}} -
{{furigana:VocabDef}}
-{{/VocabDef}} + {{#VocabDef}} +
{{edit:furigana:VocabDef}}
+ {{/VocabDef}} + {{#Notes}} +
+
Notes
+
{{furigana:Notes}}
+
+ {{/Notes}} + {{#Image}} +
{{Image}}
+ {{/Image}} -{{#Image}}
{{Image}}
{{/Image}} +
-{{#Notes}} -
-
Notes
-
-
{{furigana:Notes}}
-
-
-{{/Notes}} - -
- - + +
\ No newline at end of file + function tweak_reveal_text() { + const elem = document.querySelector("div.ensentence > a.hint"); + if (elem) { + elem.innerText = "Reveal English translation"; + } + } + function removePitchBrackets() { + const tags = document.getElementById("pitchnum"); + if (tags !== null) { + tags.innerHTML = tags.innerHTML.replace(/[\[\]]/g, ""); + } + } + markPitch(); + removePitchBrackets(); + tweak_reveal_text(); +