Skip to content

Instantly share code, notes, and snippets.

@atleastimtrying
Created August 20, 2014 13:09
Show Gist options
  • Save atleastimtrying/8c706514c30dc3bc6b65 to your computer and use it in GitHub Desktop.
Save atleastimtrying/8c706514c30dc3bc6b65 to your computer and use it in GitHub Desktop.
internal score events api
$(quizall).trigger('post_score', {
game: 'true_false',
level: 'Level1',
score: 100,
complete: function(options){
if(options.success !== true){
//provide answer via options.details
}
if(options.location === 'local'){
//redirect to whichever page you like
}
if(options.location === 'remote'){
//redirect to whichever page you like
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment