3 ms·
> if they use an overblown framework for something as simple as a switch on a website and thereby destroy normal browser functionality Likely not what you mean
by gedy 4y ago
> if they use an overblown framework for something as simple as a switch on a website and thereby destroy normal browser functionality
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
- justsomehnguy 4y agoCheckBox is a native HTML switch control. Change my mind.jpg
- zelphirkalt 4y agoYour 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"