PageSourceSearch

https://breakthroughnews.org/wp-content/uploads/hummingbird-assets/aca4b7f5a9b381ad9a4cccf8eed39119.js

js breakthroughnews.org collected 2026-10-02 03:40:36 UTC 10,682 bytes, 2 lines download raw bytes

1/**handles:hashbar-frontend**/
2(l=>{function n(){return l("body").find("#wpadminbar").length?"32px":"0px"}l.fn.get_transparent_selector=function t(){var o=l(this).closest(".hthb-notification.hthb-pos--top[data-transparent_header_selector]").last().data("transparent_header_selector");return!!l(this).closest(".hthb-notification.hthb-pos--top").hasClass("hthb-transparent")&&o},l.fn.add_transparent_header_spacing=function t(o){l("body").find("#wpadminbar").length&&Number.parseInt(o+l("body").find("#wpadminbar").height())},l(document).ready(function(){l("body").prepend(l(".hthb-notification"))});var d=400;function h(t,o){return(o=Number.parseInt(o))*(t=Number.parseInt(t))/100}function t(){var t=document.querySelectorAll(".hashbar-announcement-bar");0!==t.length&&t.forEach(function(t){"true"===t.getAttribute("data-countdown-enabled")&&o(t)})}function o(t){var o,e,i,s,n;t.hasAttribute("data-countdown-initialized")||(t.setAttribute("data-countdown-initialized","true"),o=t.getAttribute("data-countdown-type"),e=t.getAttribute("data-countdown-date"),0!==(s=(t.parentElement&&t.parentElement.classList.contains("hashbar-announcement-bar-wrapper")?t.parentElement:t).querySelectorAll(".hashbar-countdown-timer")).length&&e&&(s.forEach(function(t){a(t,e,o)}),n=setInterval(function(){s.forEach(function(t){a(t,e,o)})},1e3),t.setAttribute("data-countdown-interval",n)))}function a(t,o,e){var i=(new Date).getTime(),s,o=new Date(o).getTime()-i,i,n,h,o,a,c,r,l,d,b,b;o<0?t.textContent="Ended":(i=Math.floor(o/864e5),n=Math.floor(o%864e5/36e5),h=Math.floor(o%36e5/6e4),o=Math.floor(o%6e4/1e3),a="false"!==t.getAttribute("data-show-days"),c="false"!==t.getAttribute("data-show-hours"),r="false"!==t.getAttribute("data-show-minutes"),l="false"!==t.getAttribute("data-show-seconds"),"simple"===(d=t.getAttribute("data-countdown-style")||"simple")?(b=[],a&&0<i&&b.push(i+"d"),c&&0<n&&b.push(n+"h"),r&&0<h&&b.push(h+"m"),l&&b.push(o+"s"),t.textContent=0<b.length?b.join(" "):"0s"):"digital"===d?(b="",a&&(b+=u(i)+":"),c&&(b+=u(n)+":"),r&&(b+=u(h)+":"),l&&(b+=u(o)),t.textContent=b.replace(/:$/,"")):"circular"===d||"box"===d?p(t,i,n,h,o,a,c,r,l):t.textContent="compact"===e?0<i?i+"d "+n+"h":0<n?n+"h "+h+"m":h+"m "+o+"s":u(i)+":"+u(n)+":"+u(h)+":"+u(o))}function p(t,o,e,i,s,n,h,a,c){var n,n,o,h;n&&(n=t.querySelector(".countdown-days"))&&(n.textContent=String(o).padStart(2,"0")),h&&(n=t.querySelector(".countdown-hours"))&&(n.textContent=String(e).padStart(2,"0")),a&&(o=t.querySelector(".countdown-minutes"))&&(o.textContent=String(i).padStart(2,"0")),c&&(h=t.querySelector(".countdown-seconds"))&&(h.textContent=String(s).padStart(2,"0"))}function u(t){return(t<10?"0":"")+t}l(window).on("load",function(){var s=Number.parseInt(l(".hthb-notification.hthb-pos--top").last().height()),n=l(".hthb-notification.hthb-pos--bottom").last().height(),i=l(".hthb-notification.hthb-pos--left-wall").last().width(),h=l(".hthb-notification.hthb-pos--right-wall").last().width(),a,t=(l(".hthb-notification.hthb-state--open").each(function(){"top"==(a=l(this).getPostion())?(l("body").addClass("hthb hthb-pt--"+s),l(this).get_transparent_selector()&&(l(l(this).get_transparent_selector()).addClass("hthb-top-unset"),l(l(this).get_transparent_selector()).css({top:"unset"}))):"bottom"==a&&l("body").css("padding-bottom",n+"px");var t=l(this).data("time_to_show"),o=l(this).data("id")?"_"+l(this).data("id"):"",e=Cookies.get("hashbarpro_cookiecount"+o),i=Cookies.get("hashbarpro_oldcookie"+o);t&&0<t&&(0<=document.cookie.indexOf("hashbarpro_oldcookie"+o)&&t==i&&e?(e++,Cookies.set("hashbarpro_cookiecount"+o,e,{expires:7})):(Cookies.set("hashbarpro_oldcookie"+o,t,{expires:7}),Cookies.set("hashbarpro_cookiecount"+o,1,{expires:7}))),t<e&&(l(this).css({display:"none"}),l(this).removeClass("hthb-state--open").addClass("hthb-state--minimized"),"top"==a)&&l("body").removeClass("hthb")}),l(".hthb-notification.hthb-state--minimized").each(function(){var t=l(this).getPostion();"top"!=t&&"top-promo"!=t&&"bottom"!=t&&"bottom-promo"!=t||l(this).find(".hthb-row").css("display","none")}),l(".hthb-notification.hthb-state--minimized").each(function(){var t=l(this).getPostion();"left-wall"==t?l(this).css("left","-"+i+"px"):"right-wall"==t&&l(this).css("right","-"+h+"px")}),setTimeout(function(){l(".hthb-notification").addClass("hthb-loaded")},d),l(".hthb-notification").each(function(){var t=l(this).attr("data-delay_time");+t&&setTimeout(()=>{l(this).showNotification(s,n,i,h)},1e3*+t)}),l(".hthb-close-toggle").on("click",function(){var t=l(this).closest(".hthb-notification"),o=t[0].dataset.id;let e=+hashbar_localize.cookies_expire_time;"hours"===hashbar_localize.cookies_expire_type&&(e/=24),"minutes"===hashbar_localize.cookies_expire_type&&(e/=1440),l(this).minimizeNotification(s,n,i,h),t.addClass("hthb-manually-closed"),"1"==hashbar_localize.bar_keep_closed&&Cookies.set("keep_closed_bar_"+o,"1",{expires:e,path:"/"}),"1"==hashbar_localize.dont_show_bar_after_close&&Cookies.set("dont_show_bar_"+o,"1",{expires:e,path:"/"})}),l(".hthb-open-toggle").on("click",function(){l(this).closest(".hthb-notification").removeClass("hthb-manually-closed"),l(this).showNotification(s,n,i,h)}),l(".hthb-close-toggle, .hthb-open-toggle").on("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),l(this).trigger("click"))}),l(window).height()),o=l("body").height();let c=window.pageYOffset||document.documentElement.scrollTop,e=c/r*100;e=Number.parseInt(e);var r=l(document).height()-l(window).height();l(window).on("scroll",function(t){c=l(window).scrollTop(),e=c/r*100,e=Number.parseInt(e),l(".hthb-scroll").each(function(){var t=l(this).data("scroll_to_show"),o=l(this).data("scroll_to_hide"),e=l(this)[0].dataset.id;l(this).trigger_notification_on_scroll(e,t,o,c,r)})})}),l.fn.getPostion=function(){return this.closest(".hthb-notification").hasClass("hthb-pos--top")?"top":this.closest(".hthb-notification").hasClass("hthb-pos--bottom")?"bottom":this.closest(".hthb-notification").hasClass("hthb-pos--left-wall")?"left-wall":this.closest(".hthb-notification").hasClass("hthb-pos--right-wall")?"right-wall":this.closest(".hthb-notification").hasClass("hthb-pos--bottom-promo")?"bottom-promo":this.closest(".hthb-notification").hasClass("hthb-pos--top-promo")?"top-promo":void 0},l.fn.minimizeNotification=function(t,o,e,i){var s=this.getPostion(),e=this.closest(".hthb-notification").width(),i=this.closest(".hthb-notification").width();this.closest(".hthb-notification").removeClass("hthb-state--open"),this.closest(".hthb-notification").addClass("hthb-state--minimized"),"left-wall"!=s&&"right-wall"!=s&&this.closest(".hthb-notification").find(".hthb-row").slide
2Up(),"top"==s?(l("body").removeClass("hthb"),this.get_transparent_selector()&&(l(this.get_transparent_selector()).addClass("hthb-top-unset"),l(this.get_transparent_selector()).css({top:n()}))):"bottom"==s?l("body").css("padding-bottom",""):"left-wall"==s?this.closest(".hthb-notification").css("left","-"+e+"px"):"right-wall"==s&&this.closest(".hthb-notification").css("right","-"+i+"px")},l.fn.showNotification=function(t,o,e,i){var s,e,i;this.closest(".hthb-notification").is(".hthb-manually-closed")||(s=this.getPostion(),e=this.closest(".hthb-notification").width(),i=this.closest(".hthb-notification").width(),this.closest(".hthb-notification").removeClass("hthb-state--minimized"),this.closest(".hthb-notification").addClass("hthb-state--open"),"left-wall"!=s&&"right-wall"!=s&&this.closest(".hthb-notification").find(".hthb-row").slideDown(),"top"==s?(l("body").addClass("hthb hthb-pt--"+t),this.get_transparent_selector()&&(l(this.get_transparent_selector()).addClass("hthb-top-unset"),l(this.get_transparent_selector()).css({top:"unset"}))):"bottom"==s?l("body").css("padding-bottom",o+"px"):"left-wall"==s?this.closest(".hthb-notification").css("left",""):"right-wall"==s&&this.closest(".hthb-notification").css("right",""))},l.fn.trigger_click_on_open_button=function(){l(this).is(".hthb-manually-closed")||(l(this).addClass("hthb-trigger-open-clicked").removeClass("hthb-trigger-close-clicked"),l(this).find(".hthb-open-toggle").trigger("click"))},l.fn.trigger_click_on_close_button=function(){l(this).removeClass("hthb-trigger-open-clicked").addClass("hthb-trigger-close-clicked"),l(this).find(".hthb-close-toggle").trigger("click")},l.fn.check_keep_close_bar=function(t){var t=Cookies.get("keep_closed_bar_"+t);return"1"!==hashbar_localize.bar_keep_closed||!t},l.fn.trigger_notification_on_scroll=function(t,o,e,i,s){l(this).is(".hthb-manually-closed")||(0<(o&&"string"==typeof o&&o.indexOf("%"))&&1<(e&&"string"==typeof e&&e.indexOf("%"))?(o=Number.parseInt(o),e=Number.parseInt(e),i>h(o,s)&&i<h(e,s)?l(this).is(".hthb-state--open")||l(this).is(".hthb-trigger-open-clicked")||l(this).check_keep_close_bar(t)&&l(this).trigger_click_on_open_button():l(this).is(".hthb-state--minimized")||l(this).trigger_click_on_close_button()):o&&"string"==typeof o&&o.indexOf("%")&&(""===e||null==e)?i>h(o=Number.parseInt(o),s)?l(this).is(".hthb-state--open")||l(this).is(".hthb-trigger-open-clicked")||l(this).check_keep_close_bar(t)&&l(this).trigger_click_on_open_button():l(this).is(".hthb-state--minimized")||l(this).trigger_click_on_close_button():o&&"number"==typeof o&&e&&"string"==typeof e?o<i&&i<h(e,s)?l(this).is(".hthb-state--open")||l(this).is(".hthb-trigger-open-clicked")||l(this).check_keep_close_bar(t)&&l(this).trigger_click_on_open_button():l(this).is(".hthb-state--minimized")||l(this).trigger_click_on_close_button():(""===o||null==o)&&e&&"string"==typeof e&&e.indexOf("%")?i>h(e=Number.parseInt(e),s)?l(this).is(".hthb-state--minimized")||l(this).trigger_click_on_close_button():l(this).is(".hthb-state--open")||l(this).is(".hthb-trigger-open-clicked")||l(this).check_keep_close_bar(t)&&l(this).trigger_click_on_open_button():!o||"number"!=typeof o||""!==e&&null!=e||(i<o?l(this).is(".hthb-state--minimized")||l(this).trigger_click_on_close_button():l(this).is(".hthb-state--open")||l(this).is(".hthb-trigger-open-clicked")||l(this).check_keep_close_bar(t)&&l(this).trigger_click_on_open_button()))},l(document).ready(function(){l(".hthb-countdown").each(function(){var o="#"+l(this).attr("id")+" .hthb-countdown-section .hthb-countdown-wrap",t=l(o).data("countdown"),e=l(o).data("custom_label");l(o).countdown(t,function(t){l(o+" .countdown-day").html(t.strftime("%D")),l(o+" .countdown-day-text").html(e.day),l(o+" .countdown-hour").html(t.strftime("%H")),l(o+" .countdown-hour-text").html(e.hour),l(o+" .countdown-minute").html(t.strftime("%M")),l(o+" .countdown-minite-text").html(e.min),l(o+" .countdown-second").html(t.strftime("%S")),l(o+" .countdown-second-text").html(e.sec)})}),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.