Skip to content

Instantly share code, notes, and snippets.

@atleastimtrying
Created August 21, 2014 10:05
Show Gist options
  • Save atleastimtrying/690855880147179ca889 to your computer and use it in GitHub Desktop.
Save atleastimtrying/690855880147179ca889 to your computer and use it in GitHub Desktop.
get content apis
$(quizall).trigger('get_categories', {
game: 'true_false',
complete: function(categories){
//do something with categories here
}
});
$(quizall).trigger('get_content', {
game: 'true_false',
category: 'Animals',
level: 'Level2',
complete: function(content){
//do something with content here
}
});
$(quizall).trigger('get_levels', {
game: 'true_false',
category: 'Animals',
complete: function(levels){
//do something with levels here
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment