krmanik / Anki-xiehanzi

Learn, read, write and practice Mandarin by drawing strokes in Anki Desktop, AnkiDroid and AnkiMobile with audio of HSK 2.0 (HSK1-6) and HSK 3.0 (HSK 1-9) characters.
https://krmanik.github.io/Anki-xiehanzi
Other
157 stars 17 forks source link

Show or hide pinyin or zhuyin when multiple exists #17

Closed krmanik closed 1 year ago

krmanik commented 1 year ago

For multiple pinyin or zhuyin it is required to loop and show/hide as per prefs.

document.querySelectorAll(type).forEach(function (val) {
     val.style.display = 'inline'; // none
});