Created
August 20, 2014 13:09
-
-
Save atleastimtrying/8c706514c30dc3bc6b65 to your computer and use it in GitHub Desktop.
internal score events api
This file contains hidden or 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
$(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