PageSourceSearch

https://betalningsutredningen.se/wp-content/plugins/newsy-reaction/js/plugin.js?ver=2.2.0

js betalningsutredningen.se collected 2026-10-01 15:39:58 UTC 2,332 bytes, 1 lines download raw bytes

1!function(i){"use strict";window.newsy=window.newsy||{},window.newsy.reaction={init:function(e){var t=this;t.xhr=null,t.container=void 0===e?i("body"):e,t.selectors={wrapper:".br-reaction-items",link:".br-reaction",voted:".br-reaction-voted",value:".br-reaction-value",bar:".br-reaction-bar"},t.classes={voting:"br-reaction-voting",voted:"br-reaction-voted"},t.container.on("click",".br-reaction",function(e){e.preventDefault(),t.element=i(this),t.wrapper=t.element.parents(t.selectors.wrapper),t.wrapper.is(t.selectors.voting)||t.element.is(t.selectors.voted)||t.ajax_request()})},ajax_request:function(){var n=this;n.wrapper.addClass(n.selectors.voting),n.xhr||(n.xhr=i.ajax({url:ak_ajax_url,type:"post",dataType:"json",data:{post_id:n.wrapper.data("post-id"),nonce:n.wrapper.data("nonce"),vote:n.element.data("vote"),action:"br_vote_post"}}).done(function(e){-1===e.response?(i("#userModal .modal-login-page").find("h3").html(e.message),i.magnificPopup.open({items:{src:"#userModal"}})):1===e.response&&(n.reaction_voted(e.vote),n.update_votes(e.votes))}).fail(function(e,t,o){"error"===t?alert(o.toString()):"timeout"===t&&alert("Execution Timeout")}).always(function(e,t,o){n.xhr=null,n.wrapper.removeClass(n.selectors.voting)}))},reaction_voted:function(e){var t=this,o=t.wrapper.data("post-id"),n=t.wrapper.data("post-url");t.createCookie("br_vote_"+e+"_"+o,!0,30,encodeURIComponent(n)),t.wrapper.find(t.selectors.link).removeClass(t.classes.voted),t.wrapper.find(".br-reaction-"+e).addClass(t.classes.voted)},update_votes:function(r){var a=this;a.wrapper.find(a.selectors.link).each(function(){var e=i(this),t=i.trim(e.data("vote")),o=0,n=0;void 0!==r[t]&&(o=r[t].count,n=r[t].percentage),e.find(a.selectors.value).text(o),e.find(a.selectors.bar).css("height",n+"%")})},createCookie:function(e,t,o,n){var r,o=o?((r=new Date).setTime(r.getTime()+24*o*60*60*1e3),"; expires="+r.toUTCString()):"";document.cookie=e.concat("=",t,o,"; path="+n)},readCookie:function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n+=1){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},deleteCookie:function(e){this.createCookie(e,"",-1,"")}},newsy.reaction.init(),i(document).on("newsy-ajax-load",function(e,t){newsy.reaction.init(i(t))})}(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.