Open "ARI Stream Quiz -> Settings -> Advanced" page and populate "Custom JS code" parameter with the following code to scroll to answers container instead of explanation area:
Code: |
jQuery(function($) {
setTimeout(function() {
var quizzes = jQuery('.ari-stream-quiz').ariStreamQuiz();
if (!quizzes) return;
if (!(quizzes instanceof Array)) quizzes = [quizzes];
$.each(quizzes, function(idx, quiz) {
var scrollTo = quiz.scrollTo;
quiz.scrollTo = function(el, offset) {
var $el = $(el);
if ($el.hasClass('quiz-question-status')) {
el = $el.parent().find('.quiz-question-answers');
}
return scrollTo.call(quiz, el, offset);
}
});
}, 10);
});
|
Regards,
ARI Soft