sschmidTU / mr-kanji-search-wtk

WTK-Search is a Kanji search engine using (multiple) Wanikani radicals or RTK names, on a RTK element dataset of 3000+ Kanji
https://sschmidtu.github.io/mr-kanji-search-wtk/
7 stars 2 forks source link

Make kanji results expandable, show elements, alternate meanings, etc #22

Closed sschmidTU closed 1 month ago

sschmidTU commented 3 years ago

Arrow right (collapsed) and down (expanded) would be nice, like this: image https://jsfiddle.net/ryanpcmcquen/wqz6v0xb/

edit: might be easier to use <details><summary> (HTML5)

jsfiddle content (in case it gets deleted) HTML: ```html
Bar.
``` CSS: ```css .panel-heading.collapsed .fa-chevron-down, .panel-heading .fa-chevron-right { display: none; } .panel-heading.collapsed .fa-chevron-right, .panel-heading .fa-chevron-down { display: inline-block; } i.fa { cursor: pointer; margin-right: 5px; } .collapsed ~ .panel-body { padding: 0; } ```

Showing the Kanji elements (#25) may need some refactors and/or restructuring of the data, see #24. (e.g. 日 is always given as sun, day. but only sun would be needed.)

sschmidTU commented 1 month ago

Done for now, can still add new expandable info later, no concrete suggestion left here.