Add Notice to view the certificate on desktop

Please add this given script in your wp-admin -> wplms -> footer -> google anaylitics script  :

<script>
jQuery( 'body' ).delegate( '.ajax-certificate:not(.certificate_image)','click',function(event){
	if(jQuery(window).width()<=900 ){
		event.preventDefault();
		event.stopPropagation();
		$.magnificPopup.open({
            items: {
                src: '<div class="white-popup">Please access with Desktop for better quality certificates</div>',
                type: 'inline'
            }
        });
	}
});
</script>

 

Leave a Reply

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