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