title: Flipswitch - How to store a flipswitch state in a variable?
body: <p>I would like to use the flipswitch code generated at:</p>
  
  <p><a href="https://www.cssportal.com/css3-flip-switch/" rel="nofollow noreferrer">https://www.cssportal.com/css3-flip-switch/</a></p>
  
  <p>I'm an electrician by trade not a full time programmer. I would like to use this  ode to control a raspberry pi output. Simply I would like a variable to equal 1 when the flipswitch is ON and 0 when OFF.</p>
  
  <p>Thanks</p>