Created
September 4, 2014 10:44
-
-
Save atleastimtrying/2d6bdade05958f11460c to your computer and use it in GitHub Desktop.
how to get a game up and running via events in quizall for logos
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('category_levels_choice',{ | |
game: 'logos_questions', | |
callback: function(category, level){ console.log(category, level); } | |
}); |
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: "logos_questions", | |
level: "Level1", | |
category: "Animals", | |
amount: 1, | |
complete: function(game){ | |
console.log(game); | |
} | |
}) |
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_logos', { | |
complete: function(data){console.log('data', data)}, | |
answer_id: 1, | |
incorrect_amount: 7 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment