1jQuery(function($) { 2 3 $('.zilla-likes').on('click', function() { 4 var link = $(this); 5 if (link.hasClass('active')) return false; 6 7 var id = $(this).attr('id'), 8 postfix = link.find('.zilla-likes-postfix').text(); 9 10 $.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.html(data).addClass('active').attr('title','You already like this'); 23 }, 24 }); 25 26 return false; 27 }); 28 29 if ($('body.ajax-zilla-likes').length) { 30 $('.zilla-likes').each(function() { 31 var id = $(this).attr('id'); 32 $(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.