News for hackers. Stuff that matters.
Re: by ItalianPoetry on Monday October 16, 2023 @01:50PM (#37903526)
Thank you!

It's all in the initial HTML payload. Each word in Italian, its translation in English, and the corresponding sidenote, if any, all have a common `data-id`. When the mouse hovers on a word, the corresponding note gets a `.visible` class via JS.

Re: by silent_cal on Monday October 16, 2023 @02:55PM (#37904428)
That's very clever... I think this will save me a lot of time. Thanks so much for sharing!