1// source --> https://kiwiqa.co.uk/wp-content/themes/alea/js/simple-likes-public.js?ver=0.5 2(function( $ ) { 3 'use strict'; 4 $(document).on('click', '.boc_like_button', function() { 5 var button = $(this); 6 var post_id = button.attr('data-post-id'); 7 var security = button.attr('data-nonce'); 8 var iscomment = button.attr('data-iscomment'); 9 var allbuttons; 10 if ( iscomment === '1' ) { 11 allbuttons = $('.sl-comment-button-'+post_id); 12 } else { 13 allbuttons = $('.boc_like_button-'+post_id); 14 } 15 16 if (post_id !== '') { 17 $.ajax({ 18 type: 'POST', 19 url: simpleLikes.ajaxurl, 20 data : { 21 action : 'process_simple_like', 22 post_id : post_id, 23 nonce : security, 24 is_comment : iscomment, 25 }, 26 beforeSend:function(){ 27 button.addClass('pressed'); 28 button.animate({opacity: "0"},'700', "easeOutCubic"); 29 }, 30 success: function(response){ 31 var icon = response.icon; 32 //alert(icon); 33 var count = response.count; 34 allbuttons.html(icon+count); 35 if(response.status === 'unliked') { 36 var like_text = simpleLikes.like; 37 allbuttons.prop('title', like_text); 38 allbuttons.removeClass('liked'); 39 } else { 40 var unlike_text = simpleLikes.unlike; 41 allbuttons.prop('title', unlike_text); 42 allbuttons.addClass('liked'); 43 } 44 button.removeClass('pressed'); 45 button.animate({opacity: "1"},'500'); 46 } 47 }); 48 49 } 50 return false; 51 }); 52})( 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.