Created
January 14, 2012 19:11
-
-
Save Adman/1612552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.halftime == 1 && minutes >= window.newMins / 2){ | |
if (seconds >= window.newSecs / 2){ | |
$("#time").stopwatch().stopwatch('stop'); | |
toggleHalf(); | |
window.halftime = 2; | |
return; | |
} | |
} | |
if (window.halftime == 2 && minutes >= window.newMins){ | |
if (seconds >= window.newSecs){ | |
$("#time").stopwatch().stopwatch('stop'); | |
//funct for sending results | |
return; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
halftime = 1 means first halftime