Type: js
[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
Untitled Snippet
document.addEventListener(‘DOMContentLoaded’, function () { document.querySelectorAll(‘.elementor-post__thumbnail__link’).forEach(function(link) { link.setAttribute(‘target’, ‘_blank’); link.setAttribute(‘rel’, ‘noopener noreferrer’); }); });Continue reading
Parallax Up Scroll Effect for class parallax-up JS
/** * Parallax Up Scroll Effect * * Applies a subtle upward parallax movement to any element * with the class: * * .parallax-up * * As the user scrolls, the element is translated upward * relative to its position…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
voorbeeld tekst borduren
jQuery(function($){ console.log(“Font preview snippet actief”); // NAAM → PREVIEW $(document).on(‘input’, ‘input[name=”naam”]’, function(){ let naam = $(this).val(); $(“#naam-preview”).text(naam || “Typ een naam om voorbeeld te zien”); }); // LETTERTYPE → PREVIEW $(document).on(‘change’, ‘select[name=”lettertype_borduren”]’, function(){ let font = $(this).val(); console.log(“Gekozen font:”, font);…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
Insert Title Into Page Banner
jQuery(document).ready(function($) { var $titleSource = $(‘.banner-overlay-title’).first(); if ($titleSource.length && $(‘.innerbanner’).length) { $(‘.innerbanner’).html(‘ ‘ + $titleSource.html() + ‘ ‘); $titleSource.hide(); } });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