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