Skip to content

Instantly share code, notes, and snippets.

@crestinglight
Created March 19, 2017 17:55
Show Gist options
  • Save crestinglight/f169aca8b337498359223629637cf60c to your computer and use it in GitHub Desktop.
Save crestinglight/f169aca8b337498359223629637cf60c to your computer and use it in GitHub Desktop.
function saveScore(e){
var response = false;
if (e.target.responseText === "true"){
response = true;
}
// This if statement checks to see if "didYouFindWaldo"
// returns true. If so, we move on to stop the timer.
if (response === true){
timerData = endTimer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment