Re:Show HN: A simple way to make HTML websites
by KarlTheCool on Sunday November 22, 2020 @04:24AM
(#25176136)
It's worth noting when doing this it registers each anchor in the browser history. If you want to avoid this, checkbox hacking with the :checked selector is an option.
[ Parent
| on HN ]
Re:Show HN: A simple way to make HTML websites
by pmlnr on Sunday November 22, 2020 @04:34AM
(#25176174)
Don't do this. Registering the anchor is for back button compatibility; I'm so tired of spas and 'modern' js constantly breaking it.
Re:Show HN: A simple way to make HTML websites
by axguscbklp on Sunday November 22, 2020 @04:44AM
(#25176216)
I am tired of that too, but you can use the checkbox hack to implement features such as tabbed content for which storing user selections in the browser's history would probably result in unintuitive UX.
Re:Show HN: A simple way to make HTML websites
by katsura on Sunday November 22, 2020 @04:38AM
(#25176185)
Isn’t that the point of links though? If you use checkboxes you won’t be able to share a specific page with a friend.
Re:Show HN: A simple way to make HTML websites
by 6510 on Sunday November 22, 2020 @04:39AM
(#25176192)
I also suggested an update.. but but but.... Its a normal webpage with normal history behavior... STOP TRYING TO FIX IT! ENOUGH ALREADY! (ha-ha)
Re:Show HN: A simple way to make HTML websites
by app4soft on Sunday November 22, 2020 @04:27AM
(#25176145)
> If you want to avoid this, checkbox hacking with the :checked selector is an option.
Any Screenshots/Tutorial?
Re:Show HN: A simple way to make HTML websites
by axguscbklp on Sunday November 22, 2020 @04:33AM
(#25176168)
Re:Show HN: A simple way to make HTML websites
by app4soft on Sunday November 22, 2020 @06:17AM
(#25176593)
> CodePen requires JavaScript to render the code and preview areas in this view.
Thanks, but no.