Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
smiley-slider, an input widget
branch: master

This branch is 22 commits behind dglittle:gh-pages

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README
demo.html
smiley-slider.js
smiley-slider.png

README

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
    })

Something went wrong with that request. Please try again.