a1c77ec29a
Anki 2.1.50 brought a change to the WYSIWYG note editor. Previously, pressing `Control+b` or the `Bold text` button wrapped the selection in a `<b>` tag, and the latest update changed it to `<strong>`, therefore breaking scripts and styles for newly added notes. This patch adds support for the new tag in affected templates.
38 lines
904 B
HTML
38 lines
904 B
HTML
<!--
|
|
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";
|
|
}
|
|
}
|
|
document.addEventListener('DOMContentLoaded', boxTargetWord(), false);
|
|
</script>
|