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