Add Visitor Type to the dataLayer
window.dataLayer = window.dataLayer || []; var email = ‘{email}’; dataLayer.push({ ‘visitorType’ : email.length > 0 ? ‘existingCustomer’ : ‘newCustomer’ });Continue reading
window.dataLayer = window.dataLayer || []; var email = ‘{email}’; dataLayer.push({ ‘visitorType’ : email.length > 0 ? ‘existingCustomer’ : ‘newCustomer’ });Continue reading
jQuery(“input , textarea”).focus(function(){ jQuery(this).parents(‘.elementor-field-group’).addClass(‘focused’); }); jQuery(“input , textarea”).blur(function(){ var inputValue = jQuery(this).val(); if ( inputValue == “” ) { jQuery(this).parents(‘.elementor-field-group’).removeClass(‘focused’); } });Continue reading
// setup console.log(“running”); let q = 1; const submit = document.getElementById(“next-button”); const question = document.getElementById(“question”); // next button document.getElementById(“next-button”).addEventListener(“click”, function () { // split by q value let radioButtons = document.querySelectorAll(“input[name=’yes-no’]”); if (q == 4) { radioButtons = document.querySelectorAll(“input[name=’time-choice’]”); }…Continue reading
(function ($) { $(document).ready(function ($) { if ($(“.main-content .entry-content div”).hasClass(“vc_row”)) { $(“body”).addClass(“wpb-js-composer-active”); } }); })(window.jQuery);Continue reading
/******************************* CHECKOUT – ORDER RECEIVED – MY ACCOUNT – CHANGE BILLING FIELDS FUNCTIONS *******************************/ var bdiElems = Array.from(document.querySelectorAll(‘bdi’)); bdiElems.forEach(function(elem) { if (elem.textContent.includes(‘0.00’)) { elem.style.display = “none” } });Continue reading