title: How to create an on/off switch with Javascript/CSS?
body: <p>I want to have a sliding switch. On the left would be Off and on the right would be On. When the user toggles the switch, I want the 'slider' portion to slide to the other side and indicate it is off. I could then have a callback that takes as input the state of the toggle switch so I can act accordingly.</p>
  
  <p>Any idea how to do this?</p>