eRechnung-Anbieter

Category - Uncategorized

Startseite » Uncategorized
`; /* ==================================== 5. ELEMENTE VERKNÜPFEN ==================================== */ const overlay = shadow.querySelector( ".overlay" ); const popup = shadow.querySelector( ".popup" ); const closeButton = shadow.querySelector( ".close" ); const logo = shadow.querySelector( ".logo" ); const cta = shadow.querySelector( ".cta" ); // Direkte Bild-URL einfügen logo.setAttribute("src", LOGO_URL); // Partnerlink ohne URL-Validierung cta.setAttribute("href", PARTNER_URL); /* ==================================== 6. ÖFFNEN UND SCHLIESSEN ==================================== */ let previousFocus = null; let previousOverflow = ""; let isOpen = false; function openPopup() { if (isOpen) { return; } previousFocus = document.activeElement; previousOverflow = document.body.style.overflow; host.style.setProperty( "display", "block", "important" ); document.body.style.overflow = "hidden"; isOpen = true; closeButton.focus({ preventScroll: true }); } function closePopup() { if (!isOpen) { return; } host.style.setProperty( "display", "none", "important" ); document.body.style.overflow = previousOverflow; isOpen = false; try { sessionStorage.setItem( STORAGE_KEY, "closed" ); } catch (e) {} if ( previousFocus && typeof previousFocus.focus === "function" ) { previousFocus.focus({ preventScroll: true }); } } /* ==================================== 7. EVENTS ==================================== */ closeButton.addEventListener( "click", closePopup ); overlay.addEventListener( "click", function (event) { if (event.target === overlay) { closePopup(); } } ); document.addEventListener( "keydown", function (event) { if (!isOpen) { return; } if (event.key === "Escape") { closePopup(); return; } if (event.key !== "Tab") { return; } const focusable = [ closeButton, cta ]; const first = focusable[0]; const last = focusable[focusable.length - 1]; const active = shadow.activeElement; if ( event.shiftKey && active === first ) { event.preventDefault(); last.focus(); } else if ( !event.shiftKey && active === last ) { event.preventDefault(); first.focus(); } } ); /* ==================================== 8. AUTOMATISCH ANZEIGEN ==================================== */ window.setTimeout( openPopup, DELAY_MS ); } /* ======================================== 9. START ======================================== */ if (document.readyState === "loading") { document.addEventListener( "DOMContentLoaded", initPopup, { once: true } ); } else { initPopup(); } })(); rtant; } #era-bf-overlay #era-bf-popup .era-bf-logo-fixed > img { width: 55px !important; max-width: 55px !important; height: 55px !important; max-height: 55px !important; } }