1jQuery(function(jQuery) { 2 3 jQuery('.zilla-likes').on('click', function() { 4 var link = jQuery(this); 5 if (link.hasClass('active')) return false; 6 7 var id = jQuery(this).attr('id'), 8 postfix = link.attr('data-postfix'); 9 10 jQuery.ajax({ 11 type: 'POST', 12 url: zilla_likes.ajaxurl, 13 data: { 14 action: 'zilla-likes', 15 likes_id: id, 16 postfix: postfix, 17 }, 18 xhrFields: { 19 withCredentials: true, 20 }, 21 success: function(data) { 22 link.addClass('active').attr('title','You already like this').find('span').html(data+postfix); 23 }, 24 }); 25 26 return false; 27 }); 28 29 if (jQuery('body.ajax-zilla-likes').length) { 30 jQuery('.zilla-likes').each(function() { 31 var id = jQuery(this).attr('id'); 32 jQuery(this).load(zilla_likes.ajaxurl, { 33 action: 'zilla-likes', 34 post_id: id, 35 }); 36 }); 37 } 38});
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.