document.addEventListener('DOMContentLoaded', function() {
var header = document.getElementById('my-header');
var scrollThreshold = 50; // ab wie vielen px der Effekt greift
function rapoxLogoShrink() {
if (window.scrollY > scrollThreshold) {
header.classList.add('scrolled');
} else {
header.classList.remove('scrolled');
}
}
window.addEventListener('scroll', rapoxLogoShrink, { passive: true });
rapoxLogoShrink(); // initial check (falls Seite schon gescrollt geladen wird)
});
document.addEventListener('DOMContentLoaded', function () {
var cartContainer = document.querySelector('.elementor-menu-cart__container');
if (!cartContainer) return;
var syncCartState = function () {
var open = cartContainer.getAttribute('aria-hidden') === 'false';
document.body.classList.toggle('rapox-cart-open', open);
};
new MutationObserver(syncCartState).observe(cartContainer, {
attributes: true,
attributeFilter: ['aria-hidden']
});
syncCartState();
});
You are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.