Back to front pageView on Hacker News (opens in a new tab)Show HN: htmz – a low power tool for HTML (opens in a new tab)leanrada.com1020 pointsby Kalabasa (on Hacker News)2 years agoleanrada.com (opens in a new tab)htmz - a low power tool for htmlComments (242) 68 threadsShow all commentsShowing thread 36 of 68[-]atum472 years ago1 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[-]Kalabasa2 years ago1 reply#> hide all sections and shows the one that matches the hashOh 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_man2 years ago#You’re full of great hacks. That one I may actually use. Looking forward to that article.
Show HN: htmz – a low power tool for HTML (opens in a new tab)leanrada.com1020 pointsby Kalabasa (on Hacker News)2 years ago
atum472 years ago1 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
Kalabasa2 years ago1 reply#> hide all sections and shows the one that matches the hashOh 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_man2 years ago#You’re full of great hacks. That one I may actually use. Looking forward to that article.
Comments (242) 68 threads
Show all comments
Showing thread 36 of 68
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