Tony's version uses an HTML5 input type slider which makes the code a lot simpler but is a bit of a pain to style.
<-- back to the notes