PageSourceSearch

https://www.lubin.pl/wp-content/plugins/post-reaction-buttons/assets/js/script.min.js?ver=3.1.1

js www.lubin.pl collected 2026-10-02 10:02:12 UTC 5,216 bytes, 1 lines download raw bytes

1function prbLoadVotableGroups(){var t=[];jQuery(".prb-ajax-load").each(function(){var o=jQuery(this).data("group-id"),r=jQuery(this).data("title");t.push({group_id:o,title:r})}),t.length>0&&jQuery.post(post_reaction_buttons.ajaxurl,{action:"prb-load-votable",prb_groups:t},function(t){if(t.constructor===Array){var o=0;jQuery(".prb-ajax-load").each(function(){void 0!==t[o]&&(jQuery(this).html(t[o]),o++)})}  post_reaction_buttons_insert_com_count();     })}function prbLoadTotalGroups(){var t=[];jQuery(".prb-ajax-load-totals").each(function(){t.push({id:jQuery(this).data("id")})}),t.length>0&&jQuery.post(post_reaction_buttons.ajaxurl,{action:"prb-load-total",prb_groups:t},function(t){if(t.constructor===Array){var o=0;jQuery(".prb-ajax-load-totals").each(function(){void 0!==t[o]&&(jQuery(this).html(t[o]),o++)})}})}function prbDoPadReactionButtons(){jQuery(".prb-group").each(function(){prbPadReactionButtons(this)})/*,document.fonts.ready.then(function(){jQuery(".prb-group").each(function(){prbPadReactionButtons(this)})})*/}function prbPadReactionButtons(t){if(post_reaction_buttons.equalise_width){var o=jQuery(t).clone().css({visibility:"hidden"}).appendTo("body"),r=0;jQuery(o).children(".prb-form, .prb-total-rbs").children(".prb-reaction-button").each(function(){var t=jQuery(this).find(".prb-input-button, .prb-total-button").width();t>r&&(r=t)});var n=[],e=0;jQuery(o).children(".prb-form, .prb-total-rbs").children(".prb-reaction-button").each(function(){var t=jQuery(this).find(".prb-input-button, .prb-total-button").width();n[e]=(r-t)/2,e+=1}),o.remove(),e=0,jQuery(t).children(".prb-form, .prb-total-rbs").children(".prb-reaction-button").each(function(){0!=n[e]&&jQuery(this).find(".prb-input-button, .prb-total-button").css({"padding-left":n[e]+"px","padding-right":n[e]+"px"}),e+=1})}}function prbVote(t,o){if(!post_reaction_buttons.auth_redirect){t.preventDefault();var r=jQuery(o).attr("value"),n=jQuery(o).closest(".prb-group"),e=jQuery(o).closest(".prb-form"),a=jQuery(o).closest(".prb-reaction-button"),u=jQuery(e).children(".prb-group-id").attr("value");if(post_reaction_buttons.optimistic_voting&&0!=jQuery(n).data("num-votes")){jQuery(n).data("num-votes",jQuery(n).data("num-votes")-1);var i=!1;0==jQuery(n).data("num-votes")&&(i=!0),prbDisableReactionButtons(e,a,i),prbHandleSuccessfulVote(a,e,jQuery(n).data("vote-count-hidden")),jQuery(n).data("vote-count-hidden",!1)}jQuery.post(post_reaction_buttons.ajaxurl,{action:"prb-vote",prb_nonce:jQuery(e).children("#prb_nonce_"+u).attr("value"),prb_group_id:u,prb_vote_id:r,prb_vote_count_hidden:jQuery(n).data("vote-count-hidden")},function(t){if(!post_reaction_buttons.optimistic_voting&&t.hasOwnProperty("result")&&"success"===t.result){var o=!1;t.hasOwnProperty("disable_reaction_buttons")&&(o=t.disable_reaction_buttons),t.hasOwnProperty("vote_counts")&&jQuery(e).children(".prb-reaction-button").each(function(){for(var o in t.vote_counts)if(t.vote_counts[o].id==jQuery(this).children(".prb-input-button").val()){jQuery(this).find(".prb-vote-count").data("vote-count",t.vote_counts[o].count);break}}),prbDisableReactionButtons(e,a,o),prbHandleSuccessfulVote(a,e,jQuery(n).data("vote-count-hidden")),jQuery(n).data("vote-count-hidden",!1)}})}}function prbHandleSuccessfulVote(t,o,r){prbIncrementVoteCount(t),jQuery(t).addClass("prb-selected"),prbUpdateVoteCounts(o),prbUpdateGraphPercentages(o),jQuery(t).find(".prb-graph-anim").addClass("prb-animate-vote")}function prbIncrementVoteCount(t){var o=jQuery(t).find(".prb-vote-count"),r=parseInt(jQuery(o).data("vote-count"));r+=1,jQuery(o).data("vote-count",r)}function prbGetTotalVoteCount(t){var o=0;return t.children(".prb-reaction-button").each(function(){o+=parseInt(jQuery(this).find(".prb-vote-count").data("vote-count"))}),o}function prbUpdateVoteCounts(t){if(post_reaction_buttons.display_percentages)var o=prbGetTotalVoteCount(t);t.children(".prb-reaction-button").each(function(){var t=jQuery(this).find(".prb-vote-count"),r=parseInt(t.data("vote-count"));r>0&&(post_reaction_buttons.display_percentages?t.text(Math.round(100*(r/o).toFixed(2))+"%"):t.text(r),jQuery(this).addClass("prb-has-vote"))})}function prbUpdateGraphPercentages(t){var o=0;t.children(".prb-reaction-button").each(function(){var t=parseInt(j
1Query(this).find(".prb-vote-count").data("vote-count"));t>o&&(o=t)}),o>0&&t.children(".prb-reaction-button").each(function(){var t=parseInt(jQuery(this).find(".prb-vote-count").data("vote-count"));if(!isNaN(t)&&t>0){var r=0;r=t==o?100:Math.round(100*(t/o).toFixed(2)),jQuery(this).removeClass(function(t,o){return(o.match(/(^|\s)prb-graph-\S+/g)||[]).join(" ")}),r>0&&jQuery(this).addClass("prb-graph-"+r)}})}function prbDisableReactionButtons(t,o,r){r?jQuery(t).children(".prb-reaction-button").each(function(){jQuery(this).find(".prb-input-button").attr("disabled",!0)}):jQuery(o).find(".prb-input-button").attr("disabled",!0)}jQuery(document).ready(function(){post_reaction_buttons.load_via_ajax&&(prbLoadVotableGroups(),prbLoadTotalGroups()),prbDoPadReactionButtons(),jQuery("body").on("click",".prb-input-button",function(t){if(post_reaction_buttons_check(t,this)){prbVote(t,this)}}),jQuery(document).ajaxComplete(function(){prbDoPadReactionButtons()})});

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.