Automatically click mark complete and go to next unit on media complete

NOTE:  This tip will work only for wordpress videos.

Please go to wp-admin -> wplms -> footer -> google analytics code.

<script>
jQuery( 'body' ).delegate( '#mark-complete', 'media_complete', function(event){
 jQuery('#mark-complete').trigger('click');
 setTimeout(function(){
   jQuery('#next_unit').trigger('click');
   var esc = jQuery.Event("keydown", { keyCode: 27 });
   jQuery("body").trigger(esc);
 },3000)
});
</script>

 

Leave a Reply

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