Kanji Search - Related words and English-to-Japanese mnemonics

@Kellamity I’ve made the Jisho and WaniKani links on the Kanji Search site actual links like you suggested. They still look the same, but you can now right-click, ctrl-click, press Enter, etc.

It seems that in lessons and reviews there is the CSS rule p, pre { margin: 1em 0; }. I tried adding margin-top: 0 to your .ks-note li > p rule and the grouping seems to be fixed.

I also noticed a problem with the CSS injection during lessons/reviews: the callback function you provide in wkItemInfo.append() might get called multiple times (because there are multiple items in a review session), so injectStyle(css) will add your CSS several times to the page.

2 Likes

I’ve fixed the margin issue. I’ve also added logic to prevent duplicate style injection. @Sinyaven you’re a life-saver :+1:

3 Likes

Your future vision impaired and assistive technology users thank you :wink:

2 Likes

I’ve updated the CSS style to look better in lessons, reviews, and extra study. Things should look more consistent now.

3 Likes

Thank you for all your hard work. This looks very useful, I’ll give it a try

2 Likes