PageSourceSearch

https://www.anaee.eu/wp-content/plugins/gutenverse-news/assets/js/hero.js

js anaee.eu collected 2026-10-02 14:41:46 UTC 4,070 bytes, 2 lines download raw bytes

1(()=>{"use strict";var e={912:(e,n,r)=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}r.d(n,{A:()=>t})}},n={};function r(t){var s=n[t];if(void 0!==s)return s.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var t=r(912);!function(){window.gvnews=window.gvnews||{},window.gvnews.hero=window.gvnews.hero||{};var e="object"===("undefined"==typeof gvnews?"undefined":(0,t.A)(gvnews))&&"object"===(0,t.A)(gvnews.library),n="function"==typeof gvnews.tns,r=!1;window.gvnews.hero={action:function(){var e=this;r&&e.gvnewsLibrary.cancelAnimationFrame.call(e.gvnewsLibrary.win,r),r=e.gvnewsLibrary.requestAnimationFrame.call(e.gvnewsLibrary.win,(function(){e.dispatch(),e.heroSlider(e.container)}))},init:function(n){var r=this;if(r.gvnewsLibrary=!!e&&gvnews.library,r.gvnewsLibrary){r.container=void 0===n?r.gvnewsLibrary.globalBody:n;var t={resize:r.action.bind(this)};r.gvnewsLibrary.winLoad(r.action.bind(this)),r.gvnewsLibrary.docReady(r.action.bind(this)),r.gvnewsLibrary.addEvents(r.gvnewsLibrary.win,t)}},dispatch:function(){var e=this;e.gvnewsLibrary.forEach(e.container.getElementsByClassName("gvnews_heroblock"),(function(n,r){var t=n,s=t.getElementsByClassName("gvnews_heroblock_wrapper"),a=t.getElementsByClassName("gvnews_heroblock_scroller"),i=t.getElementsByClassName("gvnews_post"),o=t.dataset.margin;e.gvnewsLibrary.windowWidth()>667?(s.length>0&&e.gvnewsLibrary.forEach(s,(function(e,n){e.style.marginLeft="-"+o+"px",e.style.marginBottom="-"+o+"px",e.style.marginRight=0,e.style.marginTop=0})),i.length>0&&e.gvnewsLibrary.forEach(i,(function(e,n){e.style.padding="0 0 "+o+"px "+o+"px "}))):a.length>0&&(o>5&&(o=5),e.gvnewsLibrary.hasClass(t,"tiny-slider")||e.gvnewsLibrary.forEach(a,(function(e,n){e.style.marginLeft="-"+o+"px"})),s.length>0&&e.gvnewsLibrary.forEach(s,(function(e,n){e.style.marginLeft=0,e.style.marginBottom=0,e.style.marginRight=0})),i.length>0&&e.gvnewsLibrary.forEach(i,(function(n,r){e.gvnewsLibrary.getParents(n,".gvnews_heroblock_scroller").length>0?e.gvnewsLibrary.hasClass(t,"tiny-slider")?e.gvnewsLibrary.hasClass(t,"gvnews_heroblock_1")&&e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_4")||e.gvnewsLibrary.hasClass(t,"gvnews_heroblock_2")&&(e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_3")||e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_5"))||e.gvnewsLibrary.hasClass(t,"gvnews_heroblock_3")&&(e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_3")||e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_4"))||e.gvnewsLibrary.hasClass(t,"gvnews_heroblock_4")&&e.gvnewsLibrary.hasClass(n,"gvnews_hero_item_3")?(n.style.paddingLeft=o+"px",n.style.paddingBottom=o+"px"):(n.style.paddingLeft=0,n.style.paddingBottom=o+"px"):(n.style.paddingLeft=o+"px",n.style.paddingBottom=0):(n.style.paddingLeft=0,n.style.paddingBottom=o+"px")})))}))},heroSlider:function(e){if(n){var r=this,t=e.querySelectorAll(".gvnews_heroblock.tiny-slider");t.length>0&&r.gvnewsLibrary.forEach(t,(function(e,n){var t=e,s=t.dataset.autoplay,a=t.dataset.delay;t=t.querySelectorAll(".gvnews_hero_wrapper:not(.gvnews_tns_active)"),r.gvnewsLibrary.forEach(t,(function(e,n){if(!r.gvnewsLibrary.hasClass(e,"gvnews_tns_active")){var t=gvnews.tns({container:e,textDirection:"ltr",items:1,controlsText:["",""],controls:!0,nav:!1,loop:!0,autoplay:s,autoplayTimeout:a,mouseDrag:!0,onInit:function(e){void 0!==e.nextButton&&r.gvnewsLibrary.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&r.gvnewsLibrary.addClass(e.prevButton,"tns-prev")}});void 0!==t&&(t.events.on("dragStart",(function(e){e.event.preventDefault(),e.event.stopPropagation()})),r.gvnewsLibrary.addClass(e,"gvnews_tns_active"),r.gvnewsLibrary.dataStorage.put(e,"tiny-slider",t))}}))}))}}},gvnews.hero&&gvnews.hero.init()}()})();
2//# sourceMappingURL=hero.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.