Created
August 21, 2014 10:05
-
-
Save atleastimtrying/690855880147179ca889 to your computer and use it in GitHub Desktop.
get content apis
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('get_categories', { | |
game: 'true_false', | |
complete: function(categories){ | |
//do something with categories here | |
} | |
}); |
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('get_content', { | |
game: 'true_false', | |
category: 'Animals', | |
level: 'Level2', | |
complete: function(content){ | |
//do something with content here | |
} | |
}); |
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('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