Toestemming  banner v2.0

document.addEventListener(‘DOMContentLoaded’,function(){ const path=window.location.pathname; if(path===’/voorwaarden/privacyverklaring/’||path===’/voorwaarden/cookiebeleid/’){return;} const overlay=document.getElementById(‘dv-consent-overlay’); const banner=document.getElementById(‘dv-consent-banner’); const panel=document.getElementById(‘dv-consent-panel’); const btnClose=document.getElementById(‘dv-consent-close’); const btnPanelClose=document.getElementById(‘dv-consent-panel-close’); const btnAccept=document.getElementById(‘dv-consent-accept’); const btnOptions=document.getElementById(‘dv-consent-options’); const btnSave=document.getElementById(‘dv-consent-save’); const btnBack=document.getElementById(‘dv-consent-back’); const consent=localStorage.getItem(‘dvConsent’); if(!consent){overlay.hidden=false;banner.hidden=false;} btnAccept.addEventListener(‘click’,function(){localStorage.setItem(‘dvConsent’,’accepted’);overlay.hidden=true;banner.hidden=true;panel.hidden=true;}); btnOptions.addEventListener(‘click’,function(){banner.hidden=true;panel.hidden=false;}); btnBack.addEventListener(‘click’,function(){panel.hidden=true;banner.hidden=false;}); btnSave.addEventListener(‘click’,function(){ const stats=document.getElementById(‘consent-statistics’).checked; const marketing=document.getElementById(‘consent-marketing’).checked; localStorage.setItem(‘dvConsent’,JSON.stringify({statistics:stats,marketing:marketing})); overlay.hidden=true;banner.hidden=true;panel.hidden=true; }); btnClose.addEventListener(‘click’,function(){overlay.hidden=true;banner.hidden=true;}); btnPanelClose.addEventListener(‘click’,function(){overlay.hidden=true;panel.hidden=true;}); });Continue reading

Verberg Opties selecteren knoppen

document.addEventListener(‘DOMContentLoaded’, function () { var path = window.location.pathname || ”; var body = document.body; // 1) WooCommerce-kernpagina’s waar knoppen wél moeten blijven var isWooCorePage = body.classList.contains(‘woocommerce’) || body.classList.contains(‘woocommerce-page’) || path.indexOf(‘/winkelwagen’) !== -1 || path.indexOf(‘/afrekenen’) !== -1 || path.indexOf(‘/mijn-account’) !== -1…Continue reading

Notifications – Site Wrapper

/** * Site Wrapper JS * * Creates the .notification-page-wrap element used by the * notification panel animation. * * The wrapper contains the Elementor header, main content, and footer. * When body.notifications-open is added, CSS shrinks this wrapper *…Continue reading

Hero – Slider Controller

/** * Hero Slider JS * * Controls the full-screen hero card slider. * * Requires: * – .era-hero-slider * – .era-hero-slide * – .era-hero-dot * * Features: * – Sets active slide state * – Tracks previous slides *…Continue reading