Skip to content

Instantly share code, notes, and snippets.

@alexlouden
Created November 15, 2013 09:44
Show Gist options
  • Save alexlouden/7481780 to your computer and use it in GitHub Desktop.
Save alexlouden/7481780 to your computer and use it in GitHub Desktop.
Return the time in seconds for http://paullaros.github.io/stopwatch-in-css/
parseInt(getComputedStyle($('#hours'), ':after').top)/-76*60*60 +
parseInt(getComputedStyle($('#seconds'), ':after').top)/-76 +
parseInt(getComputedStyle($('#minutes'), ':after').top)/-76*60 +
parseInt(getComputedStyle($('#centiseconds'), ':after').top)/-76/100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment