Lurker News

Comments (242) 68 threads

Show all comments

Showing thread 36 of 68

atum471 reply#
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

Kalabasa1 reply#
> hide all sections and shows the one that matches the hash

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;
  }
tambourine_man#
You’re full of great hacks. That one I may actually use. Looking forward to that article.