1! function ($) { 2 "use strict"; 3 $(document).on("click", ".pcpl-wrapper .pcpl-button", function () { 4 var button = $(this), 5 post_id = button.attr("data-post-id"), 6 security = button.attr("data-nonce"), 7 iscomment = button.attr("data-iscomment"), 8 allbuttons, loader = (allbuttons = $("1" === iscomment ? ".pcpl-comment-button-" + post_id : ".pcpl-button-" + post_id)).next("#pcpl-loader"); 9 10 return "" !== post_id && $.ajax({ 11 type: "POST", 12 url: simpleLikes.ajaxurl, 13 data: { 14 action: "process_pcp_like", 15 post_id: post_id, 16 nonce: security, 17 is_comment: iscomment 18 }, 19 beforeSend: function () { 20 loader.html(' <div class="loader">Loading...</div>') 21 }, 22 error: function (response) { 23 console.log(response); 24 }, 25 success: function (response) { 26 var icon = response.icon, 27 count = response.count; 28 if (allbuttons.html(icon + count), "unliked" === response.status) { 29 var like_text = simpleLikes.like; 30 allbuttons.prop("title", like_text), allbuttons.removeClass("liked") 31 } else { 32 var unlike_text = simpleLikes.unlike; 33 allbuttons.prop("title", unlike_text), allbuttons.addClass("liked") 34 } 35 loader.empty() 36 } 37 }), !1 38 }) 39}(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.