PageSourceSearch

https://www.stw-frankenthal.de/_Resources/Static/Packages/NewsWall…/JavaScript/Newswall.js?v=202609241014

js stw-frankenthal.de collected 2026-09-24 12:51:52 UTC 3,421 bytes, 2 lines download raw bytes

1function isMobile(){return window.innerWidth<768}function isDesktop(){return!isMobile()}function initAccordions(){isMobile()&&jQuery(".newswall-plugin .newswall--content-item").each(function(){jQuery(".newswall--content-wrapper").slideUp(),jQuery(".newswall--content-item-header",this).click(function(e){e.preventDefault(),jQuery(this).closest(".newswall--content-item").toggleClass("open"),jQuery(this).closest(".newswall--content-item").find(".newswall--content-wrapper").slideToggle(300)})})}function initHeight(){var e;isDesktop()&&(e=jQuery(".newswall-plugin .newswall--content > .newswall--content-item:first-child"),jQuery(".newswall-plugin .newswall--content").css("min-height",e.height()+"px"))}function setActiveState(e){isDesktop()&&(jQuery(".newswall-plugin .newswall--header h4.active").removeClass("active"),(e=jQuery(".newswall-plugin .newswall--header h4").eq(e)).addClass("active"),renderActiveSate(),slideContent(e.find("a").attr("href")))}function slideContent(e){var n;isDesktop()&&(n=(e=jQuery(e+".newswall--content-item")).index(),n=jQuery(".newswall-plugin .newswall--header").width()*n,jQuery(".newswall-plugin .newswall--content").css("transform","translate3d(-"+n+"px, 0px, 0px)"),jQuery(".newswall-plugin .newswall--content").css("min-height",e.height()+"px"))}function renderActiveSate(){var e=jQuery(".newswall-plugin .newswall--header h4.active"),n=e.position().left,e=e.find("a").width();jQuery(".newswall-plugin .newswall--header .active-state").css({left:n,width:e})}function setItemWidth(){var e;isMobile()||(e=jQuery(".newswall-plugin .newswall--header").width(),jQuery(".newswall-plugin .newswall--content-item").each(function(){jQuery(this).width(e)}))}function showConsent(e){jQuery(e).find(".newswall--item-consent").css("display","flex")}function hideConsent(e){jQuery(e).find(".newswall--item-consent").hide()}function showVideo(e){jQuery(e).find(".newswall--item-consent").hide(),jQuery(e).find(".newswall--item-image").hide();var n=jQuery(e).find(".newswall--item-video iframe");n.attr("src",n.data("src")),jQuery(e).find(".newswall--item-video").css("display","flex")}$(window).on("load",function(){var e,n;""!=window.location.hash&&0<jQuery(".newswall-plugin").length&&(e=window.location.hash,0<jQuery(".newswall-plugin").find(e).length)&&(n=jQuery(".newswall-plugin"),jQuery("html, body").animate({scrollTop:n.offset().top},300),0<(n=jQuery(".newswall-plugin").find(e)).length)&&setActiveState(n.parent().index())}),window.addEventListener("CookiebotOnAccept",e=>{Cookiebot.consent.marketing&&jQuery(".newswall--feed-item.blocked").each(function(e){jQuery(this).removeClass("blocked"),showVideo(jQuery(this))})}),jQuery(document).ready(function(){0<jQuery(".newswall-plugin").length&&(setItemWidth(),renderActiveSate(),initAccordions(),initHeight(),jQuery(".newswall--feed-item.blocked .newswall--item-image").click(function(){showConsent(jQuery(this).closest(".newswall--feed-item"))}),jQuery(".newswall--feed-item.blocked .confirm-button-no").click(function(){hideConsent(jQuery(this).closest(".newswall--feed-item"))}),jQuery(".newswall--feed-item.blocked .confirm-button-yes").click(function(){showVideo(jQuery(this).closest(".newswall--feed-item"))}),jQuery(".newswall-plugin .newswall--header h4").click(function(e){setActiveState(jQuery(this).index()),e.preventDefault()}),jQuery(window).on("resize",function(){setItemWidth()}))});
2//# sourceMappingURL=Newswall.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.