I'll take a deeper look in the code later, but it seems useful.
If been using the window location hash to do some simple navigation on my SPA, but i use JS. (Just hide all sections and shows the one that matches the hash i.e.: #main
If been using the window location hash to do some simple navigation on my SPA, but i use JS. (Just hide all sections and shows the one that matches the hash i.e.: #main
Oh there is a good hack you can do here! I've been meaning to write a blog post about this exact thing!
See CSS `:target` selector
section {
display: none;
}
section:target {
display: block;
}