Altivo JS

// Tab functionality document.querySelectorAll(‘.tab-btn’).forEach(btn => { btn.addEventListener(‘click’, () => { const tab = btn.dataset.tab; document.querySelectorAll(‘.tab-btn’).forEach(b => b.classList.remove(‘active’)); document.querySelectorAll(‘.tab-panel’).forEach(p => p.classList.remove(‘active’)); btn.classList.add(‘active’); document.getElementById(‘tab-‘ + tab).classList.add(‘active’); }); }); // Mobile nav hamburger const hamburger = document.getElementById(‘hamburger’); const navLinks = document.getElementById(‘navLinks’); if (hamburger…Continue reading

AUTO-RETRACT MOBILE MENU ON ANCHOR CLICK

jQuery(document).ready(function($) { ‘use strict’; // 1. GHOST CLICK & CUSTOM SCROLL (The Ultimate Bypass) $(document).on(‘click touchend’, ‘.off-menu a[href*=”#”]:not([href=”#”])’, function(e) { var href = $(this).attr(‘href’); var targetId = href.substring(href.indexOf(‘#’)); var $target = $(targetId); // If the target section exists on this…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Hide Billing Fields After Email Until Verified

(function () { const fieldSelectors = [ ‘#billing_phone_field’, ‘#billing_company_field’, ‘#billing_address_1_field’, ‘#billing_address_2_field’, ‘#billing_city_field’, ‘#billing_postcode_field’, ‘#billing_state_field’, ‘#billing_country_field’ ]; const klaviyoSelectors = [ ‘#kl_newsletter_checkbox_field’, ‘#kl_sms_consent_checkbox_field’ ]; function setVisibility(selectors, show) { selectors.forEach(selector => { const el = document.querySelector(selector); if (el) { el.style.display = show…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Change Verification Code Input to Number Format

document.addEventListener(‘DOMContentLoaded’, function () { const observer = new MutationObserver(function () { const codeInput = document.querySelector(‘input[name=”cev_billing_email”]’); if (codeInput && !codeInput.hasAttribute(‘inputmode’)) { codeInput.setAttribute(‘inputmode’, ‘numeric’); } }); observer.observe(document.body, { childList: true, subtree: true }); });Continue reading

Toestemming  banner v2.0

/* ========================================================= Toestemming banner v2.0 04-07-2026 Google Consent Mode v2 ========================================================= */ (function () { ‘use strict’; var consentKey = ‘dv_consent_v1’; var closeKey = ‘dv_consent_closed_until’; function el(id) { return document.getElementById(id); } function consentUpdate(analytics, marketing) { window.dataLayer = window.dataLayer || [];…Continue reading

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