1// source --> https://maltabusinessweekly.com/wp-content/plugins/leaky-paywall-registration-redirect/js/leaky-paywall-registration-redirect.js?ver=1.1.0 2( function( $ ) { 3 4 $(document).ready( function() { 5 6 $(document).on('click', '.leaky_paywall_message_wrap a', function(e) { 7 e.preventDefault(); 8 9 var url = $(this).attr('href'); 10 var post_id = ''; 11 var nag_loc = ''; 12 var bodyClasses = $('body').attr('class').split(' '); 13 14 $.each(bodyClasses, function(i, value) { 15 16 if ( !value.search('postid' ) ) { 17 18 var classArray = value.split('-'); 19 20 var post_id = parseInt( classArray[1] ); 21 22 if ( post_id > 0 ) { 23 24 nag_loc = post_id; 25 26 } 27 28 } 29 30 // for pages 31 if ( !value.search('page-id' ) ) { 32 33 var classArray = value.split('-'); 34 var post_id = parseInt( classArray[2] ); 35 36 if ( post_id > 0 ) { 37 38 nag_loc = post_id; 39 40 } 41 42 } 43 44 }); 45 46 var data = { 47 action: 'leaky_paywall_redirect_after_register', 48 post_id: nag_loc 49 }; 50 51 $.get(lp_registration_redirect_ajax.ajaxurl, data, function(data) { 52 window.location.href = url; 53 }); 54 55 }); 56 57 $('.leaky-paywall-redirect-after-register-close').click(function() { 58 $('#leaky-paywall-redirect-after-register-confirmation').slide
58Up(); 59 }); 60 61 }); 62 63})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.