PageSourceSearch

https://www.fro.at/wp-content/themes/fro/javascript.js?ver=1787127169

js fro.at collected 2026-09-24 08:37:11 UTC 27,222 bytes, 1 lines download raw bytes

1const FRO_CONFIG={breakpoints:{mobile:1220},paths:{themeDir:"undefined"!=typeof theme_dir?theme_dir:""},player:{defaults:{keyActions:[],defaultVideoWidth:0,defaultVideoHeight:0,videoWidth:-1,videoHeight:-1,startVolume:.8,loop:!1,enableAutosize:!1,alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!0},livestream:{audioWidth:0,audioHeight:0,features:["playpause"]},cba:{audioWidth:"100%",audioHeight:30,features:["playpause","current","tracks","progress","duration","volume"],alwaysShowControls:!0},popup:{audioWidth:"100%",audioHeight:30,features:["playpause","progress","volume"],alwaysShowControls:!0}}},Utils={isMobile:()=>document.body.clientWidth<=FRO_CONFIG.breakpoints.mobile,throttle(e,t=100){let n,i;return function(...s){i?(clearTimeout(n),n=setTimeout(()=>{Date.now()-i>=t&&(e.apply(this,s),i=Date.now())},t-(Date.now()-i))):(e.apply(this,s),i=Date.now())}},debounce(e,t=250){let n;return function(...i){clearTimeout(n),n=setTimeout(()=>e.apply(this,i),t)}},getPlayerConfig:(e="defaults",t={})=>({...FRO_CONFIG.player.defaults,...FRO_CONFIG.player[e],...t})},LivestreamPlayer={player:null,playButtons:[],init(){if(this.playButtons=document.querySelectorAll(".livestream-play-button-js"),0===this.playButtons.length){const e=document.getElementById("livestream-play-button");e&&(this.playButtons=[e])}document.getElementById("livestream-player")&&(this.player=new MediaElementPlayer("livestream-player",Utils.getPlayerConfig("livestream",{success:(e,t)=>{}})),this.attachEvents())},attachEvents(){this.playButtons&&this.playButtons.length>0&&this.playButtons.forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.togglePlayback(e.currentTarget)})});const e=document.getElementById("livestream-volume");e&&e.addEventListener("click",e=>{this.setVolume(e)});const t=document.getElementById("topbar-volume-slider");t&&t.addEventListener("input",e=>{this.setVolumeFromSlider(e.target.value)})},togglePlayback(e){"pause"===e.getAttribute("state")?this.play():this.pause()},play(){this.player.play(),this.player.setMuted(!1),this.playButtons.forEach(e=>{e.setAttribute("state","play");const t=e.querySelector(".icon-play, svg.icon");if(t){t.classList.remove("icon-play"),t.classList.add("icon-pause");const e=t.querySelector("use");e&&e.setAttribute("href",e.getAttribute("href").replace("#icon-play","#icon-pause"))}"IMG"===e.tagName&&e.setAttribute("src",`${FRO_CONFIG.paths.themeDir}/images/icon_pause.svg`)});const e=document.getElementById("topbar-volume-container");e&&(e.style.display="flex",e.style.opacity=0,e.style.transition="opacity 0.4s",setTimeout(()=>e.style.opacity=1,10));document.querySelectorAll(".livestream-waveform, .livestream-volume").forEach(e=>{e.style.display="block",e.style.opacity=0,e.style.transition="opacity 0.4s",setTimeout(()=>e.style.opacity=1,10)})},pause(){this.player.pause(),this.playButtons.forEach(e=>{e.setAttribute("state","pause");const t=e.querySelector(".icon-pause, svg.icon");if(t){t.classList.remove("icon-pause"),t.classList.add("icon-play");const e=t.querySelector("use");e&&e.setAttribute("href",e.getAttribute("href").replace("#icon-pause","#icon-play"))}"IMG"===e.tagName&&e.setAttribute("src",`${FRO_CONFIG.paths.themeDir}/images/icon_play.svg`)});const e=document.getElementById("topbar-volume-container");e&&(e.style.opacity=0,setTimeout(()=>e.style.display="none",400));document.querySelectorAll("#livestream-volume-indicator, .livestream-waveform, .livestream-volume").forEach(e=>{e.style.opacity=0,setTimeout(()=>e.style.display="none",400)})},setVolumeFromSlider(e){this.player&&this.player.setVolume(e/100)},setVolume(e){const t=e.currentTarget,n=t.getBoundingClientRect(),i=e.clientX-n.left,s=i/t.offsetWidth;this.player.setVolume(s);const a=document.getElementById("livestream-volume-indicator");a&&(a.style.display="block",a.style.marginLeft=21-(21-i)+"px")}},CBAPlaylist={players:new Map,init(){this.attachEvents(),this.updateContainerState(),window.addEventListener("load",()=>{this.updateContainerState()})},attachEvents(){document.querySelectorAll(".cba-playlist .item").forEach(e
1=>{e.addEventListener("click",e=>{e.target.closest(".mejs-container")||e.target.closest("a")||this.handleItemClick(e.currentTarget)})})},handleItemClick(e){if(e.classList.contains("current"))return this.hideAllPlayers(),void this.updateContainerState();const t=e.getAttribute("post_id"),n=atob(e.getAttribute("url"));this.hideAllPlayers(),e.classList.contains("player-loaded")||(this.loadPlayer(t,n),e.classList.add("player-loaded")),this.showPlayer(e),this.updateContainerState()},hideAllPlayers(){document.querySelectorAll(".cba-playlist .item").forEach(e=>{if(e.classList.contains("current")){const t=e.getAttribute("post_id"),n=this.players.get(t);n&&n.pause()}e.classList.remove("current");const t=e.querySelector(".description"),n=e.querySelector(".player");t&&(t.style.display="none"),n&&(n.style.display="none")})},loadPlayer(e,t){const n=new MediaElementPlayer(`player-${e}`,Utils.getPlayerConfig("cba",{success:(n,i)=>{n.setSrc(t),n.addEventListener("playing",()=>{this.increaseStreamCount(e)},!1)}}));this.players.set(e,n)},showPlayer(e){e.classList.add("current");const t=e.querySelector(".description");t&&(t.style.display="block",t.style.opacity=0,t.style.transition="opacity 0.3s",setTimeout(()=>t.style.opacity=1,10));const n=e.querySelector(".mejs-container");n&&(n.style.display="block");const i=e.querySelector(".player");i&&(i.style.display="block")},increaseStreamCount(e){const t=document.getElementById(`player-${e}_html5`);if(t&&"true"!==t.getAttribute("counted")&&"undefined"!=typeof FRO){const n=new FormData;n.append("action","fro_cba_stream_count"),n.append("post_id",e),n.append("nonce",FRO.nonce),fetch(FRO.ajaxUrl,{method:"POST",body:n}).catch(e=>console.error("Error increasing stream count:",e)),t.setAttribute("counted","true")}},updateContainerState(){const e=document.getElementById("ondemand-container"),t=document.querySelector(".ondemand-container-expand-button"),n=document.querySelectorAll(".cba-playlist .item");if(!e)return;if(t&&t.classList.contains("expanded"))e.classList.add("expanded"),e.style.height="auto",t&&(t.textContent="Weniger Ergebnisse");else{e.classList.remove("expanded");let i=0;const s=5,a=Math.min(n.length,s);for(let e=0;e<a;e++){const t=n[e],s=window.getComputedStyle(t),a=parseFloat(s.marginTop)||0,o=parseFloat(s.marginBottom)||0;i+=t.offsetHeight+a+o}e.style.height=a>0?Math.ceil(i-6)+"px":"auto",t&&(t.textContent="Mehr Ergebnisse ausklappen")}}},CBAOnDemandSearch={container:null,headline:null,form:null,input:null,filters:null,activeCat:"",activeCatLabel:"",activeLang:"",activeLangLabel:"",init(){this.container=document.getElementById("ondemand-container"),this.headline=document.querySelector(".section-title .entry-title"),this.form=document.getElementById("cba-search"),this.input=document.getElementById("cba-ondemand-search"),this.filters=document.querySelectorAll(".ajax-filter"),this.container&&(this.filters.forEach(e=>{if(e.querySelector(".dashicons-yes")){const t=e.getAttribute("data-cat"),n=e.getAttribute("data-l"),i=e.closest(".dropdown");i&&i.querySelector("#dropdown-categories")&&t&&(this.activeCat=t,this.activeCatLabel=e.textContent.trim()),i&&i.querySelector("#dropdown-languages")&&n&&(this.activeLang=n,this.activeLangLabel=e.textContent.trim())}}),this.attachEvents())},attachEvents(){this.form&&this.form.addEventListener("submit",e=>{e.preventDefault(),this.performSearch()}),this.input&&this.input.addEventListener("keypress",e=>{"Enter"===e.key&&(e.preventDefault(),this.performSearch())}),this.filters.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const n=e.getAttribute("data-cat"),i=e.getAttribute("data-l"),s=e.closest(".dropdown");if(s){const t=!!s.querySelector("#dropdown-categories");s.querySelectorAll(".ajax-filter").forEach(e=>{const t=e.querySelector(".dashicons-yes");t&&t.remove()});const a=document.createElement("span");a.className="dashicons dashicons-yes",e.appendChild(a);const o=e.textContent.replace(/\s+/g," ").trim();t?(this.activeCat=n,this.activeCatLabel=n?o:""):(this.activeLang=i,this.activeLangLabel=i?o:"");
1document.querySelectorAll(".filter-bar .dropdown").forEach(e=>{if(e===s)return;const a=e.querySelectorAll(".ajax-filter");t?a.forEach(e=>e.setAttribute("data-cat",n)):a.forEach(e=>e.setAttribute("data-l",i))})}this.performSearch(null,n,i)})})},performSearch(e=null,t=null,n=null){const i=null!==e?e:this.input?this.input.value:"";let s=t,a=n;null===s&&null===a&&(s="",a=""),this.container.style.opacity="0.5",this.container.style.pointerEvents="none";const o=new FormData;o.append("action","load_cba_ondemand"),o.append("nonce",FRO.nonce),o.append("search_term",i),o.append("cat",s),o.append("l",a),fetch(FRO.ajaxUrl,{method:"POST",body:o}).then(e=>e.json()).then(e=>{if(e.success){if(this.container.innerHTML=e.data.content,this.headline){let t=e.data.headline||"Letzte Sendungen aus dem CBA nachhören";this.activeCatLabel&&(t+=" ("+this.activeCatLabel+")"),this.activeLangLabel&&(t+=" ("+this.activeLangLabel+")"),this.headline.textContent=t}CBAPlaylist.init();const t=new URL(window.location);i?t.searchParams.set("search_term",i):t.searchParams.delete("search_term"),s?t.searchParams.set("cat",s):t.searchParams.delete("cat"),a?t.searchParams.set("l",a):t.searchParams.delete("l"),window.history.pushState({},"",t)}else console.error("Search error:",e),this.container.innerHTML="<p>Fehler beim Laden der Ergebnisse.</p>"}).catch(e=>{console.error("Fetch error:",e),this.container.innerHTML="<p>Netzwerkfehler.</p>"}).finally(()=>{this.container.style.opacity="1",this.container.style.pointerEvents="auto"})}},UIInteractions={init(){this.initSearch(),this.initShareButtons(),this.initStudioCam(),this.initTooltips(),this.initShowInfoPanel()},initShowInfoPanel(){const e=document.getElementById("show-info-toggle"),t=document.getElementById("show-info-panel"),n=document.getElementById("show-info-close");if(!e||!t)return;const i=()=>{t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false"),e.querySelector(".topbar-expand-icon").textContent="▼"};e.addEventListener("click",()=>{t.classList.contains("is-open")?i():(t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),e.setAttribute("aria-expanded","true"),e.querySelector(".topbar-expand-icon").textContent="▲")}),n&&n.addEventListener("click",i),document.addEventListener("keydown",e=>{"Escape"===e.key&&t.classList.contains("is-open")&&i()})},initSearch(){const e=document.getElementById("desktop-search-toggle"),t=document.getElementById("fro-search-overlay"),n=document.getElementById("fro-search-close"),i=document.getElementById("fro-search-input");if(e&&t&&i){const s=()=>{t.classList.add("is-active"),e.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"),setTimeout(()=>{i.focus()},150)},a=()=>{t.classList.remove("is-active"),e.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true"),i.value="",e.focus()};e.addEventListener("click",()=>{t.classList.contains("is-active")?a():s()}),n&&n.addEventListener("click",a),document.addEventListener("keydown",e=>{"Escape"===e.key&&t.classList.contains("is-active")&&a()}),t.addEventListener("click",e=>{e.target===t&&a()})}const s=document.getElementById("mobile-search-toggle"),a=document.getElementById("fro-search-close-mobile"),o=()=>{t&&(t.classList.remove("is-active"),t.setAttribute("aria-hidden","true"),i&&(i.value=""))};s&&t&&i&&s.addEventListener("click",()=>{t.classList.add("is-active"),t.setAttribute("aria-hidden","false"),setTimeout(()=>{i.focus()},150)}),a&&a.addEventListener("click",o);const l=document.querySelector(".fro-search-button");l&&l.addEventListener("click",()=>{const e=document.querySelector("input.fro-search");e&&("none"===e.style.display||"none"===getComputedStyle(e).display?(e.style.display="block",e.style.opacity=0,e.style.transition="opacity 0.2s, width 0.2s",setTimeout(()=>{e.style.opacity=1,e.style.width="250px",e.focus()},10)):(e.style.opacity=0,e.style.width="1px",setTimeout(()=>{e.style.display="none"},200)))});const r=document.getElementById("searchsubmit");r&&(r.value="")},initShareButtons(){const e=document.querySelectorAll(".the-share-buttons > a");
1e.forEach(e=>{e.addEventListener("click",t=>{if(!e.classList.contains("active"))return t.preventDefault(),!1})});const t=document.querySelector("a.share-activate");t&&t.addEventListener("click",function(){const t=document.querySelector(".share-facebook");t&&t.classList.contains("active")?e.forEach(e=>e.classList.remove("active")):(e.forEach(e=>e.classList.add("active")),UIInteractions.loadSocialScripts()),this.classList.add("active");const n=document.querySelector("a.share-info");n&&n.classList.add("active");[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e)})})},loadSocialScripts(){if(!document.getElementById("facebook-jssdk")){const e=document.createElement("script");e.id="facebook-jssdk",e.src="//connect.facebook.net/de_DE/all.js#xfbml=1";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}window.twttr||(window.twttr=function(e,t,n){const i=e.getElementsByTagName(t)[0],s=window.twttr||{};if(e.getElementById(n))return s;const a=e.createElement(t);return a.id=n,a.src="https://platform.twitter.com/widgets.js",i.parentNode.insertBefore(a,i),s._e=[],s.ready=function(e){s._e.push(e)},s}(document,"script","twitter-wjs"))},initStudioCam(){const e=document.querySelector(".studiocam-toggle"),t=document.querySelector(".studiocam-info"),n=document.getElementById("studiocam");e&&t&&n&&(e.addEventListener("mouseenter",()=>t.style.display="block"),e.addEventListener("mouseleave",()=>t.style.display="none"),e.addEventListener("click",()=>{"none"===n.style.display||"none"===getComputedStyle(n).display?(n.style.display="block",n.style.opacity=0,n.style.transition="opacity 0.4s",setTimeout(()=>n.style.opacity=1,10)):(n.style.opacity=0,setTimeout(()=>n.style.display="none",400))}))},initTooltips(){if(!Utils.isMobile()){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{container:"body"})})}}},ProgramPage={init(){this.initDatepicker(),this.initExpandButtons()},initDatepicker(){const e=Utils.isMobile(),t=e?"#today":"#calendar-date-picker",n=document.querySelector(t);if(!n||"undefined"==typeof flatpickr)return;let i=new Date;"undefined"!=typeof date_selected&&(i=new Date(date_selected)),flatpickr(n,{locale:"de",dateFormat:"D., d. F Y",defaultDate:i,inline:!e,static:!e,onChange:function(e,t,n){if(e.length>0){const t=n.formatDate(e[0],"Y-m-d");window.location=`?date=${t}`}},onReady:function(t,n,i){!e&&i.calendarContainer&&(i.calendarContainer.style.width="100%",i.calendarContainer.style.maxWidth="100%",i.calendarContainer.style.position="static")}})},initExpandButtons(){const e=document.querySelector(".expand-over-series .btn");e&&e.addEventListener("click",function(){const e=document.querySelectorAll("article.program.over"),t=e.length>0&&("none"===e[0].style.display||"none"===getComputedStyle(e[0]).display);e.forEach(e=>{t?(e.style.display="block",e.style.opacity=0,e.style.transition="opacity 0.4s",setTimeout(()=>e.style.opacity=1,10)):(e.style.opacity=0,setTimeout(()=>e.style.display="none",400))}),this.textContent=t?"vergangene Sendungen verbergen":"vergangene Sendungen anzeigen"});const t=document.querySelector(".ondemand-container-expand-button");t&&t.addEventListener("click",function(){this.classList.contains("expanded")?this.classList.remove("expanded"):this.classList.add("expanded"),void 0!==CBAPlaylist&&CBAPlaylist.updateContainerState()})}},VideoModule={initWidth:0,initHeight:0,noClose:!0,init(){Utils.isMobile()||(this.initFloatingVideo(),this.initIframeResize())},initFloatingVideo(){const e=document.getElementById("featured-video"),t=document.getElementById("featured-video-close-button");if(!e)return;this.initWidth=e.offsetWidth,this.initHeight=e.offsetHeight;const n=Utils.throttle(()=>{(window.pageYOffset||document.documentElement.scrollTop)>600&&this.noClose?(e.classList.add("smallVid","vidAdjust"),e.style.width="100%",t&&(t.style.display="block",t.style.opacity=0,t.style.transition="opacity 2s",setTimeout(()=>t.style.opacity=1,10),t.classList.add("smallVid"))):(e.classList.remove("smallVid","vidAdjust"),t&&(t.classList.remove("smallVid"),t.style.display="none"))},100);window.addEventListener("scroll",n),t&&t.addEventListener("click",()=>{e.classList.remove("smallVid","vidAdjust"),t.classList.remove("smallVid"),this.noClose=!1})},initIframeResize(){this.resizeIFrame();const e=Utils.debounce(()=>{this.resizeIFrame()},250);window.addEventListener("resize",e)},resizeIFrame(){const e=document.getElementById("featured-media");if(!e)return;const t=e.offsetWidth/1.7755+25;e.style.height=`${t}px`;const n=document.getElementById("featured-video");
1n&&(n.style.height=`${t}px`)}},FreundeskreisForm={init(){this.initOrganisationToggle(),this.initAmountButtons(),this.initCustomAmounts(),this.initTooltips(),this.initWidgetSubmit(),this.highlightFilledFields()},initOrganisationToggle(){const e=document.getElementById("is-organisation");if(e){const t=document.querySelector(".field-organisation");t&&(t.style.display=e.checked?"block":"none",e.addEventListener("change",()=>{t.style.display=e.checked?"block":"none"}))}},initAmountButtons(){document.querySelectorAll(".amount").forEach(e=>{e.addEventListener("click",function(){const e=12*parseInt(this.value),t=document.querySelector("#yearly-sum .value");t&&(t.innerHTML=`&euro; ${e}`);const n=document.getElementById("monthly-custom-amount");n&&(n.value="",n.classList.remove("focused"))})})},initCustomAmounts(){const e=document.getElementById("monthly-custom-amount");if(e){const t=function(){const e=this.value,t=document.querySelector("#yearly-sum .value");""===e||e<1?(this.classList.remove("focused"),t&&(t.innerHTML="&euro; 0")):(this.classList.add("focused"),t&&(t.innerHTML="&euro; "+12*parseInt(e))),document.querySelectorAll(".amount").forEach(e=>{e.checked=!1,e.style.border="",e.style.background="#fff"})};e.addEventListener("focus",t),e.addEventListener("blur",t),e.addEventListener("input",t)}const t=document.getElementById("custom-one-time-donation");if(t){const e=function(){const e=this.value;""===e||e<1?this.classList.remove("focused"):this.classList.add("focused")};t.addEventListener("focus",e),t.addEventListener("blur",e),t.addEventListener("input",e)}document.querySelectorAll("#monthly-custom-amount, #custom-one-time-donation").forEach(e=>{e.addEventListener("change",function(){this.value<0&&(this.value=0)}),e.addEventListener("keyup",function(){this.value=this.value.replace(/[,.]/g,"")})})},initTooltips(){document.querySelectorAll(".dashicons-info").forEach(e=>{new bootstrap.Tooltip(e,{container:"form.fk-form",html:!0,placement:"bottom"})})},initWidgetSubmit(){const e=document.querySelector(".fk-widget #submit-widget");e&&e.addEventListener("click",function(e){e.preventDefault();let t="",n=null;const i=document.querySelector('input[name="monthly_amount"]:checked');i&&(n=i.value);const s=document.getElementById("monthly-custom-amount");!n&&s&&""!==s.value&&(n=s.value),n&&(t=`&monthly=${n}`);const a=document.getElementById("custom-one-time-donation");if(a&&""!==a.value&&(t+=`&onetime=${a.value}`),""===t)return alert("Bitte wählen Sie einen Betrag aus!"),!1;window.location=`${this.getAttribute("href")}?${t}`})},highlightFilledFields(){const e=document.getElementById("monthly-custom-amount"),t=document.getElementById("custom-one-time-donation");e&&""!==e.value&&e.classList.add("focused"),t&&""!==t.value&&t.classList.add("focused")}},StickyHeader={headerHeight:27,init(){if(Utils.isMobile())return;const e=Utils.throttle(()=>{this.updateHeaderState()},100);window.addEventListener("scroll",e)},updateHeaderState(){const e=document.getElementById("header");if(!e)return;(window.pageYOffset||document.documentElement.scrollTop)>=this.headerHeight?e.classList.add("fixed"):e.classList.remove("fixed")}},PopupPlayer={player:null,init(){document.getElementById("livestream-popup-player")&&(this.player=new MediaElementPlayer("livestream-popup-player",Utils.getPlayerConfig("popup",{success:(e,t)=>{}})))}},SeriesFilter={init(){const e=document.querySelectorAll("nav.series a");if(!e.length)return;e.forEach(e=>{e.addEventListener("click",t=>{const n=new URL(e.href);(n.searchParams.has("byalphabet")||n.searchParams.has("bylanguage")||n.searchParams.has("bycategory"))&&(t.preventDefault(),this.handleFilterClick(t.currentTarget))})}),window.addEventListener("popstate",e=>{e.state&&e.state.view&&(this.loadContent(e.state.view,!1),this.updateActiveLinks(e.state.view))});const t=new URL(window.location.href);let n="category";t.searchParams.has("byalphabet")?n="alphabet":t.searchParams.has("bylanguage")&&(n="language"),history.replaceState({view:n},"",window.location.href)},handleFilterClick(e){const t=new URL(e.href);let n="category";t.searchParams.has("byalphabet")?n="alphabet":t.searchParams.has("bylanguage")?n="language":t.searchParams.has("bycategory")&&(n="category"),this.updateActiveLinks(n),this.loadContent(n,!0,t.href)},updateActiveLinks(e){document.querySelectorAll("nav.series a").forEach(t=>{const n=new URL(t.href);let i="category";n.searchParams.has("byalphabet")?i="alphabet":n.searchParams.has("bylanguage")&&(i="language"),i===e?(t.classList.add("active"),t.classList.add("underline")):(t.classList.remove("active"),t.classList.remove("underline"))});const t=document.querySelector(".main-container");t&&(t.classList.remove("category","language","alphabet"),t.classList.add(e))}
1,loadContent(e,t=!0,n=""){const i=document.getElementById("ajax-series-content");if(!i)return;const s=i.parentElement;if(s&&(s.style.minHeight=s.offsetHeight+"px",s.classList.add("loading")),"undefined"==typeof FRO)return;const a=new FormData;a.append("action","load_series"),a.append("view",e),a.append("nonce",FRO.nonce),fetch(FRO.ajaxUrl,{method:"POST",body:a}).then(e=>e.json()).then(a=>{a.success?(i.innerHTML=a.data,t&&n&&history.pushState({view:e},"",n),setTimeout(()=>{s&&(s.classList.remove("loading"),s.style.minHeight="")},50)):(console.error("Error loading series:",a),s&&s.classList.remove("loading"))}).catch(e=>{console.error("Fetch error:",e),s&&s.classList.remove("loading")})}},PaginationAjax={init(){const e=document.getElementById("content");e&&(e.addEventListener("click",e=>{const t=e.target.closest("#nav-below a");t&&document.getElementById("ajax-content-loop")&&(e.preventDefault(),this.loadPage(t.href))}),window.addEventListener("popstate",e=>{!e.state||e.state.view}))},loadPage(e){const t=document.getElementById("ajax-content-loop");if(!t)return;t.style.opacity="0.5",t.style.pointerEvents="none";const n=new URL(e);n.origin===window.location.origin&&(n.searchParams.append("fro_ajax_content","1"),fetch(n.href).then(e=>e.text()).then(n=>{if(n){const i=(new DOMParser).parseFromString(n,"text/html").getElementById("ajax-content-loop");t.innerHTML=i?i.innerHTML:n;const s=document.getElementById("post-container");s&&s.scrollIntoView({behavior:"smooth",block:"start"});const a=new URL(e);a.searchParams.delete("fro_ajax_content"),history.pushState(null,"",a.href)}}).catch(e=>console.error("Pagination Fetch Error:",e)).finally(()=>{t.style.opacity="1",t.style.pointerEvents="auto"}))}},SlidingUnderline={init(){if(window.innerWidth<1220)return;const e=document.getElementById("fro-nav-list"),t=document.getElementById("fro-nav-underline");if(!e||!t)return;const n=e.querySelector("li.active")||e.querySelector("li.current-menu-item");n&&(this.updateUnderline(t,n),t.classList.add("is-visible"));e.querySelectorAll("li").forEach(e=>{e.addEventListener("mouseenter",()=>{this.updateUnderline(t,e),t.classList.add("is-visible")})}),e.addEventListener("mouseleave",()=>{n?this.updateUnderline(t,n):t.classList.remove("is-visible")}),window.addEventListener("resize",Utils.debounce(()=>{window.innerWidth>=1220&&n&&this.updateUnderline(t,n)},250))},updateUnderline(e,t){if(!e||!t)return;const n=t.getBoundingClientRect(),i=t.parentElement.getBoundingClientRect(),s=n.left-i.left,a=n.width;e.style.transform=`translateX(${s}px)`,e.style.width=`${a}px`}},StickyMobilePlayer={el:null,closeBtn:null,dismissed:!1,init(){if(this.el=document.getElementById("fro-sticky-player"),!this.el)return;this.closeBtn=this.el.querySelector(".fro-sticky-close"),this.closeBtn&&this.closeBtn.addEventListener("click",()=>{this.hide(),this.dismissed=!0,LivestreamPlayer.player&&LivestreamPlayer.pause()});const e=document.querySelectorAll(".livestream-play-button-js");e.forEach(e=>{new MutationObserver(()=>{"play"!==e.getAttribute("state")||this.dismissed||this.show()}).observe(e,{attributes:!0,attributeFilter:["state"]})});const t=document.querySelector(".fro-mobile-topbar");t&&window.addEventListener("scroll",Utils.throttle(()=>{if(this.dismissed)return;if(Array.from(e).some(e=>"play"===e.getAttribute("state"))){t.getBoundingClientRect().bottom<0&&this.show()}},150))},show(){this.el&&!this.el.classList.contains("is-visible")&&(this.el.classList.add("is-visible"),document.body.classList.add("has-sticky-player"))},hide(){this.el&&(this.el.classList.remove("is-visible"),document.body.classList.remove("has-sticky-player"))}},ScrollToTop={btn:null,init(){this.btn=document.getElementById("scroll-to-top"),this.btn&&(window.addEventListener("scroll",Utils.throttle(()=>{window.pageYOffset>400?this.btn.classList.add("is-visible"):this.btn.classList.remove("is-visible")},150)),this.btn.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})}))}},NowPlaying={REFRESH_MS:12e4,init(){this.targets=document.querySelectorAll("[data-fro-nowplaying]"),this.targets.length&&"undefined"!=typeof FRO&&FRO.ajaxUrl&&(this.refresh(),setInterval(()=>this.refresh(),this.REFRESH_MS))},refresh(){const e=new URL(FRO.ajaxUrl,window.location.origin);e.searchParams.set("action","fro_now_playing"),fetch(e.href,{credentials:"same-origin"}).then(e=>e.ok?e.json():null).then(e=>{if(!(e&&e.success&&e.data&&e.data.title))return;const t=e.data.title;
1this.targets.forEach(e=>{const n="title-upper"===e.dataset.froNowplaying?t.toUpperCase():t;e.textContent.trim()!==n&&(e.textContent=n)})}).catch(e=>console.error("Error refreshing now playing:",e))}},FROApp={init(){LivestreamPlayer.init(),CBAPlaylist.init(),PopupPlayer.init(),CBAOnDemandSearch.init(),UIInteractions.init(),ProgramPage.init(),VideoModule.init(),FreundeskreisForm.init(),StickyHeader.init(),SeriesFilter.init(),PaginationAjax.init(),SlidingUnderline.init(),StickyMobilePlayer.init(),ScrollToTop.init(),NowPlaying.init()}};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".fb-page").forEach(e=>{const t=e.closest(".fro-sidebar")||e.parentElement;if(t){const n=Math.floor(t.getBoundingClientRect().width);e.setAttribute("data-width",n>0?n:295)}}),FROApp.init()}),window.livestream={init(){console.warn("livestream.init() is deprecated. Use LivestreamPlayer.init() instead."),LivestreamPlayer.init()}};

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.