zlacker

[return to "Please disable JavaScript to view this site"]
1. enw+Yv[view] [source] 2020-11-29 01:51:09
>>abused+(OP)
I’d love to get rid of JS for my personal sites, but I know of no clean and simple way to render dynamic content otherwise. Server-side rendering seems a bit messy. I want a clean REST API separate from the UI.

How can I generate pages with dynamic content easily? Ideally with absolute minimal dependencies.

◧◩
2. Arnavi+Qz[view] [source] 2020-11-29 02:36:59
>>enw+Yv
Depends on what you mean by "dynamic". Some "do something when the user clicks"-style things can be done with CSS. The best example I know of that is https://git-send-email.io/
◧◩◪
3. err4nt+0G1[view] [source] 2020-11-29 18:03:31
>>Arnavi+Qz
Abusing HTML form inputs as a way to store application state in DOM is hostile to usability and accessibility - please don't do this for any sites humans need to use. HTML does have progressive disclosure elements built in with `<details>` and `<summary>` which work without JS (I was hoping the demo was showing that or something like it)
◧◩◪◨
4. Arnavi+Yk2[view] [source] 2020-11-29 23:56:03
>>err4nt+0G1
Those HTML elements are radio buttons being used to choose between options of OS, mail server, etc. Each radio button is associated with a label that contains the correct text. Selecting a radio button unambiguously makes a `display:none` element no longer be that.

What part of it do you think is bad for usability or accessibility?

[go to top]