for the kind words and noticing .
I enable the sidenotes based on how “wide” your current viewport is. I’ve just personally found they don’t work as well on smaller screens.
I wrote it with simple jQuery. Happy to share if anyone is interested and don’t want to have to write it from scratch.