Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $indicators
- .appendTo($quiz);
- $.each(questions, function(question_index, question) {
- $('<li>')
- .attr('class', 'list-group-item')
- .html(question.prompt)
- .attr('class', question_index ? "" : "list-group-item")
- .click(function() {
- $quiz.carousel($(this).index());
- $(this).toggleClass('list-group-item active');
- })
- .appendTo($indicators);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement