https://github.com/mat3e/pick2
Small app for picking 2 out of 3 elements
https://github.com/mat3e/pick2
javascript picker switch toggle
Last synced: 12 months ago
JSON representation
Small app for picking 2 out of 3 elements
- Host: GitHub
- URL: https://github.com/mat3e/pick2
- Owner: mat3e
- License: mit
- Created: 2018-03-03T12:17:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T22:35:36.000Z (over 8 years ago)
- Last Synced: 2025-05-08T20:46:05.288Z (about 1 year ago)
- Topics: javascript, picker, switch, toggle
- Language: HTML
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pick Two
Small [Vanilla JS](http://vanilla-js.com/) app which generates a "pick two" mechanism.
E.g. when it comes to the software, you always have to choose two out of:
- _fast_
- _cheap_
- _good_
If something is _fast_ and _cheap_ at the same time, it just cannot be _good_. And so on and so forth.
## Usage
Share the URL [`https://mat3e.github.io/pick2?first=fast&second=cheap&third=good`](https://mat3e.github.io/pick2?first=fast&second=cheap&third=good) where `first`, `second` and `third` parameter values can be modified.
You can also use the `title` parameter to change 'Pick two' header into something else.
**Protip:** use `+` for a whitespace.
## Libraries
- [pretty checkbox](https://lokesh-coder.github.io/pretty-checkbox/)
## (possible) Follow-ups
- custom switch web component
- it took me too much time to find something like that, so I finally used just the mentioned CSS lib