You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matrix-spec/static
Kévin Commaille b1f66d1b71
Improve the JS script to highlight the current ToC entry (#1991)
The code relied on an IntersectionOberver, so the ToC was only updated when a heading was in the viewport.
It meant that if we jumped to a part of the text that has no heading, the ToC would still point to the old entry.

The new code looks for the correct heading when the view is scrolled so the correct entry is always selected.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2 weeks ago
..
css/fonts Rename assets-hugo directory to assets (#3259) 3 years ago
diagrams Threads: Read receipts & notifications (#1255) 2 years ago
fonts Write font files as binary instead of text (#3039) 3 years ago
icons Render a single page of the spec in Hugo 4 years ago
js Improve the JS script to highlight the current ToC entry (#1991) 2 weeks ago