Closed hidde closed 2 years ago
I've added some code that opens section content when page opens with hash or when the hash changes (fixes #3).
This works both if:
label
Demo here: https://codepen.io/hidde/pen/RwZbgVK
One weird thing: in Firefox, the location.hash change only works if wrapped in setTimeout (1 millisecond works 🤷🏻♂️); in Chromium this hack is not required.
setTimeout
I've added some code that opens section content when page opens with hash or when the hash changes (fixes #3).
This works both if:
label
is the fragmentDemo here: https://codepen.io/hidde/pen/RwZbgVK
One weird thing: in Firefox, the location.hash change only works if wrapped in
setTimeout
(1 millisecond works 🤷🏻♂️); in Chromium this hack is not required.