Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $indicators
  2. .appendTo($quiz);
  3.  
  4. $.each(questions, function(question_index, question) {
  5. $('<li>')
  6. .attr('class', 'list-group-item')
  7. .html(question.prompt)
  8. .attr('class', question_index ? "" : "list-group-item")
  9. .click(function() {
  10. $quiz.carousel($(this).index());
  11. $(this).toggleClass('list-group-item active');
  12. })
  13. .appendTo($indicators);
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement