forked from dglittle/smiley-slider
-
Couldn't load subscription status.
- Fork 0
smiley-slider, an input widget
License
Couldn't load subscription status.
mstorus/smiley-slider
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is designed to let users rate how happy they are with something using a
smiley faced slider.
Use:
// add the slider to a div with id "slider"
var s = new SmileySlider(document.getElementById("slider"))
s.position(0) // make it sad
s.position(1) // make it happy
var p = s.position() // get it's position
s.position(p / 2) // make it half as happy
s.position(function (p) {
// do something when it changes
})
About
smiley-slider, an input widget
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published