Re:Programs are dead, and JavaScript has killed them
by zelphirkalt on Tuesday December 13, 2022 @12:18PM
(#33972032)
Your definition of "QED" is quite a funny one.
I don't need a JS framework for a thing, that has 2 states, which can be realized using 2 CSS classes and toggling between them. That's maybe a 3 liner, if at all.
I am not using iOS and have no interest in it, so I have no idea what is so special about an _iOS_ switch control. Since I don't know what is that is, I also cannot really want to have it.
Fairly sure that I could probably find some easy to follow tutorial on how to make something graphically resemble a switch, if a checkbox is not sufficient for whatever reason, if I look for it ... Oh I just found a website which lists 20 of them in pure CSS on the first search query I entered: "plain css js make switch"
Re:Programs are dead, and JavaScript has killed them
by justsomehnguy on Tuesday December 13, 2022 @11:57AM
(#33971589)
CheckBox is a native HTML switch control.
Change my mind.jpg
Likely not what you meant, but FYI there is no native "switch" control in HTML - you do need to use a CSS or JS framework if you want something like iOS switch control. QED