Comment

Comment by ItalianPoetry

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton