PageSourceSearch

https://www.klimafakten.de/themes/klima/js/klima.min.js?tht86l

js klimafakten.de collected 2026-10-02 05:00:45 UTC 2,587 bytes, 2 lines download raw bytes

1function cl(e){console.log(e)}!function(i){i.behaviors.klima={postCardImagesEqualizer:function(){window.innerWidth;document.querySelectorAll(".article-list,.p-columns--6-6").forEach(e=>{let i=-1,o=[];e=e.querySelectorAll("div.col,.col-md-6,.col-lg-6");0<e.length&&e.forEach(e=>{var t=e.getBoundingClientRect();t.height;i!==t.top&&(i=t.top,o.push([])),o[o.length-1].push(e)}),0<o.length&&o.forEach(e=>{let t=0;e.forEach(e=>{var e=e.querySelector("picture img");e&&(e=e.getBoundingClientRect().height,t=e>t?e:t)}),e.forEach(e=>{e=e.querySelector("picture")||e.querySelector(".kf-news__image");e&&(e.style.height=t+"px")})})})},postCardImagesEqualizerRow:function(){var e=[],t=this.closest("div.col,.col-md-6,.col-lg-6"),i=(e.push(this),t.getBoundingClientRect().top);let o=t,n=!1;for(;(n=o.previousElementSibling&&o.previousElementSibling.getBoundingClientRect().top===i)&&(o=o.previousElementSibling,e.push(o.querySelector("picture img")||o.querySelector(".kf-news__image"))),n;);for(o=t;(n=o.nextElementSibling&&o.nextElementSibling.getBoundingClientRect().top===i)&&(o=o.nextElementSibling,e.push(o.querySelector("picture img")||o.querySelector(".kf-news__image"))),n;);let l=0;e.forEach(e=>{e&&(e=e.getBoundingClientRect().height,l=e>l?e:l)}),e.forEach(e=>{e&&((e.closest("picture")||e).style.height=l+"px")})},attach:function(e,t){once("init_post_card_image_equalizer",".article-list,.p-columns--6-6").forEach(function(e){window.addEventListener("resize",i.behaviors.klima.postCardImagesEqualizer),i.behaviors.klima.postCardImagesEqualizer()}),document.querySelectorAll(".kf-news picture img:not([data-load-event])").forEach(e=>{e.addEventListener("load",i.behaviors.klima.postCardImagesEqualizerRow),e.setAttribute("data-load-event",!0)})}}}(Drupal),Drupal.behaviors.klimaInit={attach:function(e,t){window.location.hash&&once("init_hash_opened",window.location.hash).forEach(function(e){e.children.length&&(e.children[0].classList.remove("collapsed"),e.nextElementSibling.classList.add("show"))})},copyText:function(e){e=window.location.origin+window.location.pathname+"#"+e;navigator.clipboard.writeText(e),alert("Link kopiert.")}},function(e){Drupal.behaviors.autofocusSearchInput={attach:function(){e(".toggle-searchform").click(function(){e("input").focus()})}}}(jQuery),Drupal.behaviors.klimaMenuInit={attach:function(e,t){document.querySelectorAll("ul.navbar-nav > li.nav-item.dropdown").forEach(e=>{e.addEventListener("click",e=>{try{var t=e.target.querySelector("a");location.href!==t.href&&(location.href=t.href)}catch(e){cl(e)}})})}};
2//# sourceMappingURL=klima.min.js.map

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.