Skip to content

Instantly share code, notes, and snippets.

@Adman
Created January 14, 2012 19:11
Show Gist options
  • Save Adman/1612552 to your computer and use it in GitHub Desktop.
Save Adman/1612552 to your computer and use it in GitHub Desktop.
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;
}
}
@Adman
Copy link
Author

Adman commented Jan 14, 2012

halftime = 1 means first halftime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment