scroll to top after submitting the quiz

Please add the given script from wp-admin -> wplms ->footer -> google analytics code :

<script>
jQuery(document).ready(function($){
$('.unit_content').on('unit_traverse',function(){
$( 'body' ).delegate( '.unit_button.submit_inquiz', 'click', function(event){
 $('body,html').animate({
    scrollTop: 0
  }, 1200);
});
});
});
</script>

 

Leave a Reply

Your email address will not be published. Required fields are marked *