1(function($) { 2 "use strict"; 3 jQuery(document).ready(function($) { 4 $('body').on('click', '.jws-love', function() { 5 var $loveLink = $(this); 6 var $icon = $(this).find('i'); 7 var $id = $(this).attr('id'); 8 var $that = $(this); 9 if ($loveLink.hasClass('loved')) return false; 10 if ($(this).hasClass('inactive')) return false; 11 var $dataToPass = { 12 action: 'jws-love', 13 loves_id: $id 14 } 15 $.post(jwsLove.ajaxurl, $dataToPass, function(data) { 16 $loveLink.find('.count').html(data); 17 $loveLink.addClass('loved').attr('title', 'You already love this!'); 18 $icon.removeClass('icon-basic-heart').addClass('icon-heart'); 19 }); 20 $(this).addClass('inactive'); 21 return false; 22 }); 23 }); 24})(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.