1var $j = jQuery.noConflict(); 2 3$j(document).ready(function($){ 4 initQodeLike(); 5}); 6 7function initQodeLike(){ 8 $j(document).on('click','.qode-like', function() { 9 10 var $likeLink = $j(this); 11 var $id = $j(this).attr('id'); 12 13 if($likeLink.hasClass('liked')) return false; 14 15 var $type = ''; 16 if(typeof $j(this).data('type') !== 'undefined') { 17 $type = $j(this).data('type'); 18 } 19 20 var $dataToPass = { 21 action: 'qode_like', 22 likes_id: $id, 23 type: $type 24 } 25 26 var like = $j.post(qodeLike.ajaxurl, $dataToPass, function(data){ 27 $likeLink.html(data).addClass('liked').attr('title','You already like this!'); 28 29 if($type != 'portfolio_list') { 30 $likeLink.find('span').css('opacity',1); 31 } 32 }); 33 34 return false; 35 }); 36}
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.