update japanese words
This commit is contained in:
parent
d31fc618da
commit
a71a2a389c
|
@ -7,15 +7,35 @@
|
||||||
<div class="definition">{{edit:furigana:VocabDef}}</div>
|
<div class="definition">{{edit:furigana:VocabDef}}</div>
|
||||||
{{/VocabDef}}
|
{{/VocabDef}}
|
||||||
{{#Image}}
|
{{#Image}}
|
||||||
|
<details id="details">
|
||||||
|
<summary>Image</summary>
|
||||||
<div class="images">{{Image}}</div>
|
<div class="images">{{Image}}</div>
|
||||||
|
</details>
|
||||||
{{/Image}}
|
{{/Image}}
|
||||||
{{#VocabAudio}}
|
{{#VocabAudio}}
|
||||||
<div class="pronunciation">{{VocabAudio}}</div>
|
<div class="pronunciation" id="pronunciation">{{VocabAudio}}</div>
|
||||||
{{/VocabAudio}}
|
{{/VocabAudio}}
|
||||||
<hr>
|
<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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
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());
|
||||||
|
}
|
||||||
|
}
|
||||||
reformatMultiFurigana();
|
reformatMultiFurigana();
|
||||||
|
removeAudioIfMarkedX();
|
||||||
|
toggleDetails();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -155,7 +155,6 @@ header .tags {
|
||||||
.definition,
|
.definition,
|
||||||
.notes {
|
.notes {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 10px 0;
|
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
@ -385,3 +384,19 @@ ol li+li {
|
||||||
.japanese.question:hover ruby rt {
|
.japanese.question:hover ruby rt {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Details */
|
||||||
|
|
||||||
|
details, .definition {
|
||||||
|
background-color: hsl(0deg 80% 50% / 3%);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 3px;
|
||||||
|
margin-block-end: 0.4rem;
|
||||||
|
border: 1px solid hsl(0deg 80% 50% / 15%);;
|
||||||
|
}
|
||||||
|
summary {
|
||||||
|
font-size: 18px;
|
||||||
|
color: hsl(0 80% 10% / 70%);
|
||||||
|
font-weight: 500;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue