2021-11-27 15:15:10 +00:00
< div class = "wrap" >
{{FrontSide}}
< hr id = answer >
< div class = "japanese" > {{edit:furigana:VocabFurigana}}< / div >
2022-07-12 08:37:25 +00:00
< div class = "pronunciation" > {{VocabPitchPattern}}< / div >
2021-11-27 15:15:10 +00:00
{{#VocabDef}}
< div class = "definition" > {{edit:furigana:VocabDef}}< / div >
{{/VocabDef}}
{{#Image}}
2023-08-21 04:56:32 +00:00
< details id = "details" >
< summary > Image< / summary >
2022-03-26 16:11:28 +00:00
< div class = "images" > {{Image}}< / div >
2023-08-21 04:56:32 +00:00
< / details >
2021-11-27 15:15:10 +00:00
{{/Image}}
2022-07-12 08:37:25 +00:00
{{#VocabAudio}}
2023-08-21 04:56:32 +00:00
< div class = "pronunciation" id = "pronunciation" > {{VocabAudio}}< / div >
2022-07-12 08:37:25 +00:00
{{/VocabAudio}}
2021-11-27 15:15:10 +00:00
< hr >
< footer > < a href = "https://jisho.org/search/{{kanji:text:VocabKanji}}" > Jisho< / a > < a href = "https://duckduckgo.com/?q={{kanji:text:VocabKanji}}&iax=images&ia=images&kp=-2&kl=jp-jp" > Images< / a > < a href = "http://www.weblio.jp/content/{{kanji:text:VocabKanji}}" > Weblio< / a > < a href = "https://wadoku.de/search/?q={{kanji:text:VocabKanji}}" > Wadoku< / a > < a href = "https://chan.sankakucomplex.com/post/index?tags={{kanji:text:VocabKanji}} order:popular solo rating:safe" > Sankaku< / a > < / footer >
2023-03-07 02:21:16 +00:00
< / div >
< script >
2023-08-21 04:56:32 +00:00
function removeAudioIfMarkedX() {
const pr = document.getElementById("pronunciation");
if (pr & & pr.innerText.match(/^[x× ]/i)) {
pr.style.display = "none";
}
}
function isMobile() {
return document.getElementsByTagName("html")[0].classList.contains("mobile");
}
function toggleDetails() {
const detailsElement = document.getElementById("details");
if (detailsElement) {
detailsElement.toggleAttribute("open", !isMobile());
}
}
2023-03-07 02:21:16 +00:00
reformatMultiFurigana();
2023-08-21 04:56:32 +00:00
removeAudioIfMarkedX();
toggleDetails();
2023-03-07 02:21:16 +00:00
< / script >