1//matchHeight 2!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){var e=-1,o=-1,a=function(t){return parseFloat(t)||0},n=function(e){var o=t(e),n=null,i=[];return o.each((function(){var e=t(this),o=e.offset().top-a(e.css("margin-top")),r=0<i.length?i[i.length-1]:null;null===r?i.push(e):Math.floor(Math.abs(n-o))<=1?i[i.length-1]=r.add(e):i.push(e),n=o})),i},i=function(e){var o={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var a=this;return this.css(o.property,""),t.each(r._groups,(function(t,e){e.elements=e.elements.not(a)})),this}return this.length<=1&&!o.target||(r._groups.push({elements:this,options:o}),r._apply(this,o)),this};r.version="master",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=n,r._parse=a,r._parseOptions=i,r._apply=function(e,o){var s=i(o),l=t(e),h=[l],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=l.parents().filter(":hidden");return u.each((function(){var e=t(this);e.data("style-cache",e.attr("style"))})),u.css("display","block"),s.byRow&&!s.target&&(l.each((function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})})),h=n(l),l.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||"")}))),t.each(h,(function(e,o){var n=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&n.length<=1)return void n.css(s.property,"");n.each((function(){var e=t(this),o=e.attr("style"),a=e.css("display");"inline-block"!==a&&"flex"!==a&&"inline-flex"!==a&&(a="block");var n={display:a};n[s.property]="",e.css(n),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")}))}n.each((function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=a(e.css("border-top-width"))+a(e.css("border-bottom-width")),o+=a(e.css("padding-top"))+a(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))}))})),u.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||null)})),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each((function(){var o=t(this),a=o.attr("data-mh")||o.attr("data-match-height");e[a]=a in e?e[a].add(o):o})),t.each(e,(function(){this.matchHeight(!0)}))};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,(function(){r._apply(this.elements,this.options)})),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(a,n){if(n&&"resize"===n.type){var i=t(window).width();if(i===e)return;e=i}a?-1===o&&(o=setTimeout((function(){s(n),o=-1}),r._throttle)):s(n)},t(r._applyDataApi);var l=t.fn.on?"on":"bind";t(window)[l]("load",(function(t){r._update(!1,t)})),t(window)[l]("resize orientationchange",(function(t){r._update(!0,t)}))})); 3const lang = document.documentElement.lang; 4const menubreak = 1200; 5function supportsHover(){return window.matchMedia("(hover: hover)").matches} 6function debounce(e,t){let n;return function(...u){clearTimeout(n),n=setTimeout((()=>e.apply(this,u)),t)}} 7function isMenuMobileMode(){return!supportsHover()||$(window).outerWidth()<menubreak} 8function isTabletMode(){return!supportsHover()&&$(window).outerWidth()>=menubreak} 9// Für nur mobile Menü 10function isMenuMobileMode(){return!0} 11function isTabletMode(){return!1} 12function updateAriaHasPopupForMode(){const a=Joomla.Text._("WM_OPEN_SUBMENU")||"Untermenü ein-/ausklappen";$(".hauptmenu li.hassub").each((function(){const e=$(this),t=e.attr("class").split(/\s+/).find((a=>a.startsWith("item-"))),r=e.children("a, .separator").first(),i=r.find(".dropdown").first();if(r.removeAttr("aria-haspopup aria-expanded aria-label role"),i.removeAttr("aria-haspopup aria-expanded aria-label role aria-hidden tabindex disabled"),isMenuMobileMode()){if(isTabletMode()&&tabletClickableItems.includes(t))return;r.attr({"aria-haspopup":"true","aria-expanded":i.attr("aria-expanded")||"false","aria-label":a,role:"button"}),i.attr({"aria-hidden":"true",tabindex:"-1",disabled:"true"}).css("pointer-events","none")}else i.attr({"aria-haspopup":"true","aria-expanded":r.attr("aria-expanded")||"false","aria-label":a,role:"button"})}))} 13let isKeyboardNav=!1;
13$(document).on("keydown",(function(o){"Tab"!==o.key&&"Shift"!==o.key||(isKeyboardNav=!0)})),$(document).on("mousedown",(function(){isKeyboardNav=!1})); 14 15$(function () { 16 var body = $('body'); 17 var header = $('#Header'); 18 let activeTooltipElement = null; 19 20 function setScrollbarAwareWidth() { 21 const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth; 22 let adjustedWidth = window.innerWidth - scrollbarWidth; 23 // aufrunden auf nächste gerade Zahl 24 if (adjustedWidth % 2 !== 0) adjustedWidth += 1; 25 document.documentElement.style.setProperty('--scrollbar', `${adjustedWidth}px`); 26 } 27 28 $(window).on("resize", debounce(setScrollbarAwareWidth, 200)); 29 setScrollbarAwareWidth(); 30 31 // Für externe Links 32 $.expr.pseudos.external = function (obj) { 33 return !obj.href.match(/^mailto\:/) && !obj.href.match(/^javascript\:/) && !obj.href.match(/^tel\:/) && (obj.hostname != location.hostname); 34 }; 35 var exLinkText = Joomla.Text._('OEFFNET_EXTERNE_SEITE'); 36 $('a[href]:external').each(function () { 37 $(this).addClass('externLink'); 38 var title = $(this).attr('title'); 39 var url = $(this).attr('href'); 40 var domain = '[' + url.split("/")[2] + ']'; 41 $(this).attr('data-toggle', 'tooltip').attr('target', '_blank') 42 if (typeof title !== 'undefined' && title !== false && title.indexOf(domain) >= 0) { 43 $(this).attr('data-title', title); 44 if ( $(this).children().length > 0 ) { 45 $(this).attr('aria-label', title); 46 } 47 } else if (typeof title !== 'undefined' && title !== false && title.indexOf(domain) < 0) { 48 $(this).attr('data-title', title + '<br>' + domain); 49 if ( $(this).children().length > 0 ) { 50 $(this).attr('aria-label', title + domain); 51 } 52 } else { 53 $(this).attr('data-title', exLinkText + '<br>' + domain); 54 if ( $(this).children().length > 0 ) { 55 $(this).attr('aria-label', exLinkText + domain); 56 } 57 } 58 }); 59 60 function initEscKeyHandler(){$(document).off("keydown.escmenu").on("keydown.escmenu",(function(e){if("Escape"===e.key&&(body.hasClass("mobile-open")&&$(".menu-trigger").first().trigger("click"),"function"==typeof isMenuMobileMode&&"function"==typeof supportsHover&&isMenuMobileMode()&&supportsHover()&&($(".hauptmenu li.hassub.open").removeClass("open").find("ul.submenu").slideUp().attr("aria-hidden","true"),$(".hauptmenu .dropdown").attr("aria-expanded","false")),activeTooltipElement)){const e=activeTooltipElement.querySelector(".wm-tooltip");e&&(e.setAttribute("aria-hidden","true"),e.remove()),activeTooltipElement.focus(),activeTooltipElement=null}}))} 61 62 // Tooltips 63 setTimeout((()=>{const closeLabel=Joomla.Text._("WM_CLOSE_TOOLTIP");function setTooltipVisibility(t,e){const o=t.querySelector(".wm-tooltip");o&&o.setAttribute("aria-hidden",e?"false":"true")} $('[data-toggle="tooltip"],[data-bs-toggle="tooltip"],.hasTooltip[title]').filter((function(){return 0===$(this).closest(".fixed-sidebar").length})).each((function(e){const o=this,t=o.getAttribute("title")||o.getAttribute("data-title");if(!t)return;const i=`tooltip-${e}`,l=o.tagName.toLowerCase();if("label"===l&&o.hasAttribute("for")){const t=o.getAttribute("for"),e=document.getElementById(t);e&&e.setAttribute("aria-describedby",i)}else o.setAttribute("aria-describedby",i);if(("label"===l||o.hasAttribute("data-force-tabindex"))&&!o.closest('[aria-hidden="true"]'))o.setAttribute("tabindex","0");if(!o.querySelector(".wm-tooltip")){const html=`<div class="wm-tooltip" role="tooltip" id="${i}" aria-labelledby="${i}-text" aria-hidden="true"><div class="wm-tooltip-inner ${o.getAttribute("data-position")||"top"}"><span id="${i}-text">${t}</span><button class="tooltip-close" aria-label="${closeLabel}" tabindex="-1">×</button></div></div>`;o.insertAdjacentHTML("beforeend",html),o.classList.add("hastooltip"),o.removeAttribute("title"),o.setAttribute("data-title",t)}})),$(document).on("focusin","input, select, textarea",(function(){const t=this.id;if(!t||!isKeyboardNav)return;const o=document.querySelector(`label.hastooltip[for="${t}"]`);o&&(activeTooltipElement=o,o.classList.add("tooltip-visible"),setTooltipVisibility(o,!0))})),$(document).on("focusin",".hastooltip",(function(){isKeyboardNav&&(activeTooltipElement=this,this.classList.add("tooltip-visible"),setTooltipVisibility(this,!0))})),$(document).on("focusout",".hastooltip, input, select, textarea",(function(){const t=this.id,o=this.matches(".hastooltip")?this:document.querySelector(`label.hastooltip[for="${t}"]`);o&&(o.classList.remove("tooltip-visible"),setTooltipVisibility(o,!1),activeTooltipElement===o&&(activeTooltipElement=null))})),$(document).on("click",".tooltip-close",(function(t){t.preventDefault(),t.stopPropagation();const e=this.closest(".wm-tooltip"),o=e&&e.closest(".hastooltip");e&&(e.setAttribute("aria-hidden","true"),e.remove()),o&&o.focus(),activeTooltipElement===o&&(activeTooltipElement=null)})),$(document).trigger("tooltips:ready")}),500); 64 65 // Fancybox laden, wenn Element mit data-fancybox gefunden wird 66 setTimeout(() => { 67 if ($('[data-fancybox]').length) { 68 let fancyBoxScript = document.createElement("script"); 69 fancyBoxScript.setAttribute("src", "/templates/webman4/assets/fancybox5.js"); 70 document.head.appendChild(fancyBoxScript); 71 let fancyBoxStyle = document.createElement("link"); 72 fancyBoxStyle.setAttribute("rel", "stylesheet"); 73 fancyBoxStyle.setAttribute("href", "/templates/webman4/assets/fancybox5.css"); 74 document.head.appendChild(fancyBoxStyle); 75 let fancylang; 76 "de-de"===lang?fancylang={l10n:{CLOSE:"SchlieÃen",NEXT:"Nächstes Bild",PREV:"Vorheriges Bild",MODAL:"Sie können diesen modalen Inhalt mit der ESC-Taste schlieÃen",ERROR:"Etwas ist schief gelaufen, bitte versuchen Sie es später noc
76h einmal",IMAGE_ERROR:"Bild nicht gefunden",ELEMENT_NOT_FOUND:"HTML-Element nicht gefunden",AJAX_NOT_FOUND:"Fehler beim Laden von AJAX: Nicht gefunden",AJAX_FORBIDDEN:"Fehler beim Laden von AJAX: Verboten",IFRAME_ERROR:"Fehler beim Laden der Seite",TOGGLE_SLIDESHOW:"Diashow starten",TOGGLE_FULLSCREEN:"Vollbildmodus",DOWNLOAD:"Herunterladen"}}:fancylang=!1; 77 setTimeout(() => { 78 Fancybox.bind("[data-fancybox]",{hideScrollbar:!1,mainClass:"wmfancy",idle:!1,showClass:"f-fadeSlowIn",...fancylang,Thumbs:{type:"classic",Carousel:{axis:"x",slidesPerPage:1,Navigation:!0,center:!0,fill:!0,dragFree:!0,breakpoints:{"(min-width: 991px)":{axis:"y"}}}},Images:{zoom:!1,Panzoom:{maxScale:1.5}},Toolbar:{display:{left:["infobar"],middle:[],right:["slideshow","fullscreen","close"]}}}); 79 }, 200); 80 81 $('a[data-fancybox][data-type="iframe"]').each(function () { 82 if ($(this).attr('href').match(/\.pdf(\?|#|$)/i)) { 83 $(this).attr("data-type", "pdf"); 84 } 85 }); 86 } 87 }, 500); 88 89 // PDFs, die eigentlich mit Fancybox geöffnet werden, auf mobile in neuem Tab öffenen 90 $('a:not(.immerFancy)[data-fancybox][data-type="iframe"], a:not(.immerFancy)[data-fancybox][data-type="pdf"]').on("click", function () { 91 if ($(window).outerWidth() < 992) { 92 if ($(this).attr('data-src')) { 93 var url = $(this).attr('data-src'); 94 } else { 95 var url = $(this).attr('href').replace('?tmpl=frame', ''); 96 } 97 $(this).removeAttr('data-fancybox').attr("target", "_blank").attr("href", url); 98 } 99 }); 100 101 // Equalheight 102 function setEqualHeights(){$(".eqh1").length&&$(".eqh1").matchHeight(),$(".eqh2").length&&$(".eqh2").matchHeight(),$(".eqh3").length&&$(".eqh3").matchHeight(),$(".eqbox").length&&$(".eqbox").matchHeight()}setEqualHeights(); 103 104 // Webman Menü 105 function initAccessibleMenu() { 106 isMenuMobileMode()?$(".wmmenu-outer").removeClass("open").attr("aria-hidden","true").attr("inert",""):$(".wmmenu-outer").removeClass("open").removeAttr("aria-hidden inert"); 107 body.removeClass("mobile-open"); 108 $(".hauptmenu li.open").removeClass("open") 109 .find("ul.submenu").hide().attr("aria-hidden", "true"); 110 $(".hauptmenu .dropdown").attr("aria-expanded", "false"); 111 112 const isMobileMode = isMenuMobileMode; 113 114 function openSubMenu(e,a){e.addClass("open"),e.children("ul.submenu").stop(!0,!0).slideDown().attr("aria-hidden","false"),a.attr("aria-expanded","true")} 115 function closeSubMenu(e){const n=e.find("li.open").get().reverse();n.forEach(((e,n)=>{const t=$(e);setTimeout((()=>{t.removeClass("open"),t.children("ul.submenu").stop(!0,!0).slideUp().attr("aria-hidden","true"),t.find(".dropdown").attr("aria-expanded","false")}),100*n)})),setTimeout((()=>{e.removeClass("open"),e.children("ul.submenu").stop(!0,!0).slideUp().attr("aria-hidden","true"),e.find(".dropdown").attr("aria-expanded","false")}),100*n.length+50)} 116 function toggleSubMenu(s){const e=$(s),l=e.closest("li.hassub");l.hasClass("open")?closeSubMenu(l):(closeAllSiblings(l),openSubMenu(l,e))} 117 function closeAllSiblings(n){n.siblings(".open").add(n.siblings(".open").find("li.open")).removeClass("open").find("ul.submenu").slideUp().attr("aria-hidden","true").end().find(".dropdown").attr("aria-expanded","false")} 118 function forceOpenChain(){if(!isMobileMode())return;const e=$(".hauptmenu li.active").parentsUntil(".hauptmenu","li.hassub").get().reverse(),n=$(".hauptmenu li.active.hassub").get(0);n&&e.push(n),e.forEach(((e,n)=>{const t=$(e),i=t.find("> a .dropdown, > .separator .dropdown").first();i.length&&setTimeout((()=>openSubMenu(t,i)),300*n)}))} 119 120 $(".menu-trigger").off("click").on("click",(function(e){e.preventDefault();const n=$(".wmmenu-outer");n.hasClass("open");if(n.toggleClass("open"),body.toggleClass("mobile-open"),!body.hasClass("mobile-open"))return $(".hauptmenu li.open").removeClass("open").find("ul.submenu").hide().attr("aria-hidden","true"),$(".hauptmenu .dropdown").attr("aria-expanded","fal
120se"),$(".webman-menu > .menu-right .menu-trigger").trigger("focus");n.attr("aria-hidden","true").attr("inert",""),n.removeAttr("aria-hidden").removeAttr("inert"),forceOpenChain()})); 121 $(".hauptmenu li.hassub .dropdown").off("click keydown").on("click",(function(n){n.preventDefault(),n.stopPropagation(),toggleSubMenu(this)})).on("keydown",(function(n){"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),n.stopPropagation(),toggleSubMenu(this))})); 122 $(".hauptmenu li.hassub").off("focusout").on("focusout",(function(){if(isMobileMode())return;const o=$(this);setTimeout((()=>{const n=o.find(":focus").length>0,e=o.find(".dropdown:focus").length>0;n||e||(o.removeClass("open").find("ul.submenu").slideUp().attr("aria-hidden","true"),o.find(".dropdown").attr("aria-expanded","false"))}),10)})); 123 $(".hauptmenu li.hassub").off("mouseenter mouseleave").on("mouseenter",(function(){if(!isMobileMode()){const e=$(this),o=e.find("> .dropdown, > a > .dropdown, > .separator > .dropdown").first();e.children("ul.submenu").attr("aria-hidden","false"),o.attr("aria-expanded","true")}})).on("mouseleave",(function(){if(!isMobileMode()){const e=$(this),o=e.find("> .dropdown, > a > .dropdown, > .separator > .dropdown").first();e.children("ul.submenu").attr("aria-hidden","true"),o.attr("aria-expanded","false")}})); 124 125 $(".hauptmenu li.hassub > a, .hauptmenu li.hassub > .separator") 126 .off("click") 127 .on("click", function (e) { 128 if (!isMobileMode()) return; 129 const $parentLi = $(this).closest("li"); 130 const id = $parentLi.attr("class").split(/\s+/).find(cls => cls.startsWith("item-")); 131 if (isTabletMode() && tabletClickableItems.includes(id)) { 132 return; 133 } 134 e.preventDefault(); 135 const $dropdown = $(this).find(".dropdown").first(); 136 if ($dropdown.length) toggleSubMenu($dropdown); 137 }); 138 139 updateAriaHasPopupForMode(); 140 } 141 142 $(window).on("resize", debounce(function () { 143 initAccessibleMenu(); 144 }, 200)); 145 initAccessibleMenu(); 146 initEscKeyHandler(); 147 148 // Collapse & Accordion 149 $('[data-toggle="collapse"]').on("click",(function(){var e=$
149(this),t=e.attr("data-target"),a=$(t),s="true"===e.attr("aria-expanded"),o=e.closest(".close-other"),l=o.length>0;l&&o.find(".accordion-content.open, .weiterlesen.open").each((function(){$(this).is(a)||($(this).removeClass("open").slideUp(),$(this).closest(".Item").removeClass("anzeigen"),$(this).prev().find('[data-toggle="collapse"]').attr("aria-expanded","false"))})),s?(e.attr("aria-expanded","false"),a.removeClass("open").slideUp(),e.hasClass("accordion-link")&&e.closest(".Item").removeClass("anzeigen"),e.hasClass("btn-rm")&&e.html(Joomla.Text._("WEITERLESEN"))):(e.attr("aria-expanded","true"),a.addClass("open").slideDown({complete:function(){if(!l)return;const t=e.hasClass("accordion-link")?e.closest(".Item"):a;(function(e){const t=e.get(0).getBoundingClientRect();return t.top>=0&&t.top<=window.innerHeight})(t)||t.get(0).scrollIntoView({behavior:"smooth",block:"start"})}}),e.hasClass("accordion-link")&&e.closest(".Item").addClass("anzeigen"),e.hasClass("btn-rm")&&(e.css("width",e.outerWidth()),e.html(Joomla.Text._("SCHLIESSEN"))))})); 150 function autoOpenFirstAccordionItem(){if($("body").hasClass("accordionclosed"))return;if(new URLSearchParams(window.location.search).has("accordion"))return;const a=$("body");$(".accordion-wrapper").each((function(){const n=$(this).find(".accordion-item");if(!(n.length>0&&(n.length<=5||a.hasClass("openfirstaccordion"))))return;const o=n.first().find('.accordion-link[data-toggle="collapse"]'),t=o.attr("data-target"),e=$(t);o.length&&e.length&&(o.attr("aria-expanded","true"),e.addClass("open").show(),o.closest(".Item").addClass("anzeigen"))}))} 151 autoOpenFirstAccordionItem(); 152 153 // Alles was mit Formularen zu tun hat 154 // Formulare checken, ob ausgefüllt oder nicht 155 const formfields = $('.form-control, .form-select, .form-check-input'); 156 const selectize = $('.rsform-type-selectize select.selectized'); 157 158 function formularsachen($field) { 159 const parentBlock = $field.closest('.rsform-block'); 160 161 if ($field.hasClass('rsform-checkbox')) { 162 const nolabel = $field.hasClass('nolabel'); 163 if (nolabel) { 164 parentBlock.addClass('nolabel'); 165 } 166 return; 167 } 168 const tmpval = $field.val(); 169 170 const disabled = $field.prop('disabled') || $field.hasClass('disabled'); 171 const readonly = ($field.prop('readonly') || $field.hasClass('readonly')) && !$field.attr('id')?.includes('rsfp_adv_datepicker'); 172 173 if (!tmpval) { 174 parentBlock.addClass('empty').removeClass('hasvalue active'); 175 } else { 176 parentBlock.addClass('hasvalue').removeClass('empty active'); 177 } 178 179 if (disabled) parentBlock.addClass('disabled'); 180 if (readonly) parentBlock.addClass('readonly'); 181 182 if (disabled || readonly) { 183 $field.attr("aria-hidden", "true"); 184 $field.attr("tabindex", "-1"); 185 } 186 } 187 188 // Events für Form-Felder 189 formfields.on("blur",(function(){formularsachen($(this))})),formfields.each((function(){setTimeout((()=>{formularsachen($(this))}),100)})),formfields.on("focus",(function(){$(this).closest(".rsform-block").addClass("active")})); 190 191 // Funktion für Selectize-Felder 192 function selectizeagain() { 193 $(this).on('change', function () { 194 $(this).closest('.rsform-type-selectize').find('.selectize-input').focus(); 195 }); 196 } 197 198 selectize.each(function () { 199 selectizeagain.call(this); 200 }); 201 202 //Body Klasse Scrolldown setzen 203 function scrolleddown(){$(window).scrollTop()>0?(body.addClass("scrolleddown"),$(":root").css("--headerheight",header.outerHeight()+"px")):(body.removeClass("scrolleddown"),$(":root").css("--headerheight",header.outerHeight()+"px"))}$(window).on("scroll",(function(){scrolleddown()})),scrolleddown(); 204 205 // Scroll to top 206 var totop=$("#totop"),clientheight=.5*$(window).outerHeight();function scrolltotop(){$(window).scrollTop()>clientheight?totop.fadeIn():totop.fadeOut()}$(window).on("scroll",(function(){scrolltotop()})),scrolltotop(),totop.on("click",(function(o){o.preventDefault(),$(window).scrollTop(0)})); 207 208 /* Usercentrics Button stylen, der erste Befehl ist für das Styling*/ 209 var checkExist = setInterval(function () { 210 if ($('#usercentrics-root').length) { 211 var host = document.getElementById('usercentrics-root'); 212 var style = document.createElement('style'); 213 style.innerHTML = 'button[data-testid="uc-privacy-button"] { background-color: var(--prime);} button[data-testid="uc-privacy-button"]:hover,button[data-testid="uc-privacy-button"]:focus { background-color: var(--second); } /*@media (max-width: 768px) and (orientation: portrait) {button[data-testid="uc-privacy-button"] { right: 24px; }}*/'; 214 host.shadowRoot.appendChild(style); 215 clearInterval(checkExist); 216 } 217 }, 100); // check every 100ms 218 219 // UC im Iframe, tmpl="frame" und tmpl="component" automatisch ablehnen und schlieÃen 220 if ((window.location !== window.parent.location) || (window.location.href.indexOf('tmpl=frame') > -1) || (window.location.href.indexOf('tmpl=component') > -1)) { 221 function checkIfUCLoaded() { 222 if (typeof UC_UI == "undefined") { 223 setTimeout(function () { 224 checkIfUCLoaded() 225 }, 50) 226 } else { 227 UC_UI.closeCMP(); 228 } 229 } 230 checkIfUCLoaded(); 231 } 232 233}); //Jquery zu ***************************************************************************** 234 235// Intersection Observer für das Hinzufügen von Klassen auf Mobilen Geräten 236if (!supportsHover()) { 237 const boxen = document.querySelectorAll(".singlethumb .box.imagebox a, .jobs .box.imagebox a, .sliderimage a"); 238 const ishover = "hover"; 239 const options2 = { 240 rootMargin: "-48% 0px", 241 threshold: 0, 242 }; 243 244 function boxcallback(entries, observerhover) {
245 entries.forEach((entry) => { 246 const elem = entry.target; 247 if (entry.isIntersecting) { 248 elem.classList.add(ishover); 249 } else { 250 elem.classList.remove(ishover); 251 } 252 }); 253 } 254 255 const observerhover = new IntersectionObserver(boxcallback, options2); 256 for (const box of boxen) { 257 observerhover.observe(box); 258 } 259}
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.