PageSourceSearch

https://www.brewingnordic.com/wp-content/plugins/easy-social-shari…/easy-social-sharing.min.js?ver=1.3.6

js brewingnordic.com collected 2026-09-24 10:03:17 UTC 9,968 bytes, 1 lines download raw bytes

1function get_network_data(e,s){var t=easy_social_sharing_params.network_data;return t[e]!==undefined&&"undefined"!==t[e]&&(s="string"==typeof s?parseInt(s,0):s,("string"==typeof t[e].network_count?parseInt(t[e].network_count,0):t[e].network_count)<s)?formatNumber(s):""}function formatNumber(e){var s=["","K","M","B","T"];return 1e3>(e=parseInt(e,0))?e:1e6>e?(e=parseFloat((e/1e3).toFixed(2),2))+s[1]:1e9>e?(e=parseFloat((e/1e6).toFixed(2),2))+s[2]:1e9>e?(e=parseFloat((e/1e9).toFixed(2),2))+s[3]:(e=parseFloat((e/1e9).toFixed(2),2))+s[4]}jQuery(document).ready(function(e){function s(s){e.each(e(".ess-popup-share-wrapper").find("ul.ess-available-networks").find("li"),function(){var t=e(this).find("a").attr("data-social-name");"undefined"!=typeof s[t]&&e(this).find(".ess-social-count").html(get_network_data(t,s[t]))})}function t(s){e.each(e(".ess-popup-block-wrapper").find("ul.ess-choosen-networks").find("li"),function(){var t=e(this).find("a").attr("data-social-name");"undefined"!=typeof s[t]&&e(this).find(".ess-social-count").html(get_network_data(t,s[t]))})}function o(s){e.each(e(".ess-fly-share-wrapper").find("ul.ess-clear").find("li"),function(){var t=e(this).find("a").attr("data-social-name");"undefined"!=typeof s[t]&&e(this).find(".ess-social-count").html(get_network_data(t,s[t]))})}function i(s){var t=0;e.each(e("#ess-wrap-inline-networks").find("ul.ess-social-network-lists").find("li"),function(){var o=e(this).find("a").attr("data-social-name");"undefined"!=typeof s[o]&&(t+=parseInt(s[o],0),e(this).find(".ess-social-count").html(get_network_data(o,s[o])))}),e(".ess-inline-networks-container").find(".ess-total-share").find(".ess-total-count").html(formatNumber(t))}function a(s){var t=0;e.each(e(".ess-sidebar-icon-count-wrapper").find("ul.ess-social-network-lists").find("li"),function(){var o=e(this).find("a").attr("data-social-name");"undefined"!=typeof s[o]&&(t+=parseInt(s[o],0),e(this).find(".ess-social-count").html(get_network_data(o,s[o])))}),e(".ess-sidebar-icon-count-wrapper").find(".ess-total-share").find(".ess-total-count").html(formatNumber(t))}function n(s,t,o){var i=s;if(!i.hasClass("ess-social-animated")){var a=!!i.data("cookie_duration")&&i.data("cookie_duration");if(!1!==a&&!p("essCookie","true")||!1===a){var n=""!==i.data("idle_timeout")?1e3*i.data("idle_timeout"):3e4;!0===o?e(document.body).idleTimer(n).on("idle.idleTimer",function(){r(i,0)}):r(i,t),!1!==a&&d(a)}}}function r(e,s){setTimeout(function(){e.addClass("ess-social-visible ess-social-animated")},s)}function l(s,t){var o,i=s;if(!i.hasClass("ess-social-animated")){var a=s.data("scroll_position")>100?100:s.data("scroll_position"),n=!!i.data("cookie_duration")&&i.data("cookie_duration");o=!0===t?e(".ess-social-bottom-trigger").length?e(".ess-social-bottom-trigger").offset().top:e(document).height()-500:100===a?e(document).height()-10:e(document).height()*a/100}e(window).scroll(function(){(!1!==n&&!p("essCookie","true")||!1===n)&&e(window).scrollTop()+e(window).height()>o&&(i.addClass("ess-social-visible ess-social-animated"),!1!==n&&d(n))})}function c(){for(var e=document.cookie.split("; "),s={},t=e.length-1;t>=0;t--){var o=e[t].split("=");s[o[0]]=o[1]}return s}function u(e){var s=24*e*60*60*1e3,t=new Date;return t.setTime(t.getTime()+s),"; expires="+t.toUTCString()}function p(e,s){return c()[e]===s}function d(e){var s=u(e);document.cookie="essCookie=true"+s}e("#tiptip_holder").removeAttr("style"),e("#tiptip_arrow").removeAttr("style"),e(".inline-networks.socicon").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),e(document.body).on("click",".ess-social-share",function(){var s=e(window).height()/2-225,t=e(window).width()/2-275,o=window.open(e(this).attr("href"),"","scrollbars=1, height=450, width=550, top="+s+", left="+t);return window.focus&&o.focus(),!1}),e(document.body).on("click",".ess-social-share",function(){var s=e(this),t={post_id:s.data("post-id"),network:s.data("social-name"),page_url:""!==easy_social_sharing_params.page_url?easy_social_sharing_params.page_url:window.location.href,action:"easy_social_sharing_update_single_share",security:easy_social_sharing_params.update_share_nonce,location:s.closest("li").find("a").attr("data-location")};e.ajax({url:easy_social_sharing_params.ajax_url,data:t,type:"POST",success:function(e){e.success&&e.data.counts&&s.find("span.ess-social-count").text(get_network_data(s.data("social-name"),e.data.counts))}})}),e(document.body).on("ess-init-shares-count",function(){var n={page_url:""!==easy_social_sharing_params.page_url?easy_social_sharing_params.page_url:window.location.href,action:"easy_social_sharing_get_all_network_shares_count",security:easy_social_sharing_params.all_network_shares_count_nonce,post_id:e(".ess-total-share").eq(0).attr("data-post-id")};e.ajax({url:easy_social_sharing_params.ajax_url,data:n,type:"POST",success:function(e){o(e),i(e),t(e),s(e),a(e)}})}).trigger("ess-init-shares-count"),e(document.body).on("ess-init-network-modal",function(){e(".ess-popup-close, .ess-popup-overlay").click(function(){e("body").removeClass("ess-popup-enable")}),e(".ess-all-networks").filter(":not(.enhanced)").click(function(){e("body").toggleClass("ess-popup-enable")}),e(".ess-social-share-pinterest").click(function(s){s.preventDefault(),e("body").toggleClass("ess-pinterest-popup-enable")}),e(".ess-pinterest-popup-close, .ess-pinterest-popup-overlay").click(function(){e("body").removeClass("ess-pinterest-popup-enable")})}).trigger("ess-init-network-modal"),e(document.body).on("ess-pinterest-image-picker",function(){if(e(".ess-social-pin-images").length&&(e(".ess-all-networks").length||e(".ess-social-share-pinterest").length)){var s=e(".ess-social-pin-images"),t=s.data("permalink"),o=s.data("title"),i=s.data("post_id"),a=0;e("img").each(function(){if(!e(this).hasClass("avatar")){var s=e(this).attr("src"),n=e(this).attr("alt");if(""!==s){var r='<div class="ess-social-pin-image"><img src="'+s+'" alt="'+n+'"/><a href="'+("http://www.pinterest.com/pin/create/button/?url="+t+"&media="+s+"&description="+o)+'" rel="nofollow" class="ess-pinterest-tag ess-social-share" data-social_name="pinterest" data-post_id="'+i+'" data-social_type="share"><i class="socicon socicon-pinterest"></i></a></div>';e(".ess-social-pin-images").append(r),a++}}}),0===a&&e(".ess-social-pin-images").append('<div class="ess-no-pinterest-img-found">'+easy_social_sharing_params.i18n_no_img_message+"</div>")}}).trigger("ess-pinterest-image-picker");var f=e("#ess-wrap-sidebar-networks").height()/2;e("#ess-wrap-sidebar-networks").css("margin-top",-f),e(".ess-all-networks-toggle").
1click(function(){e("#ess-wrap-sidebar-networks").toggleClass("ess-sidebar-enable"),e(".ess-all-networks-toggle i").toggleClass("fa-chevron-right")}),e(".ess-right-layout .ess-all-networks-toggle i").removeClass("fa-chevron-left"),e(".ess-right-layout .ess-all-networks-toggle i").addClass("fa-chevron-right"),e(".ess-right-layout .ess-all-networks-toggle").click(function(){e(".ess-all-networks-toggle i").toggleClass("fa-chevron-left")}),e(".ess-mobile-share-toggle").click(function(){e(this).parent().toggleClass("ess-mobile-share-enable"),e(".ess-mobile-share-overlay").toggleClass("active")}),e(".ess-mobile-share-toggle .ess-close-mob-share").click(function(){e(".ess-mobile-bottom-share").hide(),e(".ess-mobile-share-collection").toggleClass("active")}),e(".ess-mobile-share-collection").click(function(){e(".ess-mobile-bottom-share").show(),e(this).removeClass("active")}),e(document.body).on("ess-close-popup-modal",function(){return e(".ess-popup-layout-wrapper").removeClass("ess-social-visible"),setTimeout(function(){e(".ess-popup-layout-wrapper").remove()},200),!1}),e(document.body).on("keydown",function(s){27===(s.keyCode||s.which)&&e(document.body).trigger("ess-close-popup-modal")}),e(".ess-popup-layout-close, .ess-popup-layout-wrapper .ess-popup-layout-overlay").click(function(){e(document.body).trigger("ess-close-popup-modal")}),e(".ess-fly-layout-close").click(function(){e("#ess-wrap-fly-networks").removeClass("ess-social-visible"),setTimeout(function(){e("#ess-wrap-fly-networks").remove()},1e3)}),e(".ess-all-networks--popup").click(function(){e(".ess-choosen-networks").hide(),e(".ess-available-networks").show()}),e(".ess-social-auto-popup").each(function(){var s=e(this);n(s,""!==s.data("delay")?1e3*s.data("delay"):0,!1)}),e(".ess-social-trigger-idle").each(function(){n(e(this),0,!0)}),e(".ess-trigger-after-order").length&&e(".ess-social-after-purchase").each(function(){n(e(this),0,!1)}),"true"===function(e){for(var s=window.location.search.substring(1).split("&"),t=0;t<s.length;t++){var o=s[t].split("=");if(o[0]===e)return o[1]}}("ess_popup")&&e(".ess-social-after-comment").each(function(){n(e(this),0,!1)}),e(".ess-social-bottom-trigger").length&&e(".ess-social-bottom-trigger").each(function(){l(e(this),!0)}),e(".ess-social-trigger-scroll").length&&e(".ess-social-trigger-scroll").each(function(){l(e(this),!1)})}),function(e){e.fn.textTooltip=function(){"use strict";return this.each(function(){var s=this,t={init:function(){e(s).bind("mouseup",function(e){var s;window.getSelection?s=window.getSelection():document.selection&&(s=document.selection.createRange()),""!==s.toString()&&t.tooltip(e,s)})},tooltip:function(e,s){t.renderHtml(e,s)},renderHtml:function(s,o){var i=e(s.target).parent();e("body").find(".ess-text-tooltip").length>0&&e("body").find(".ess-text-tooltip").remove();var a=t.getToolTipMinWidth(s,o),n=t.getToolTipMinHeight(s,o),r=t.getToolTipPositionTop(s,o),l=t.getToolTipPositionLeft(s,o),c=e('<div class="ess-text-tooltip"/>');c.css({"min-height":n+"px","min-width":a+"px",background:"red",position:"fixed",top:r+"px",left:l+"px","z-index":"1000000"}),i.append(c)},getToolTipPositionTop:function(e){return e.pageY},getToolTipPositionLeft:function(e){return e.pageX},getToolTipMinHeight:function(){return"400"},getToolTipMinWidth:function(){return"400"},getToolTipArrowPosition:function(){}};t.init()})}}(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.