om.Analytics.init
document.addEventListener(‘om.Analytics.init’, function(event) { console.log(event.detail.Analytics); console.log(event.detail.Campaign); } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
document.addEventListener(‘om.Analytics.init’, function(event) { console.log(event.detail.Analytics); console.log(event.detail.Campaign); } );Continue reading
document.addEventListener(‘om.Types.init’, function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating, Fullscreen, Inline, Popup, Slide) console.log(event.detail.Types.Type); } );Continue reading
document.addEventListener(‘om.Campaigns.init’, function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );Continue reading
document.addEventListener(‘om.Main.parseCampaigns’, function(event) { // This event is passed the xhr object console.log(event.detail.xhr); } );Continue reading
document.addEventListener(‘om.Main.init’, function(event) {} );Continue reading
document.addEventListener(‘om.Api.init’, function(event) {} );Continue reading
document.addEventListener(‘om.Campaign.load’, function(event) { console.log(event.detail); });Continue reading
document.addEventListener(‘EVENT NAME’, function(event) {} );Continue reading
/** * Restrict countries inside the Smart Phone form field * * @link https://wpforms.com/how-to-restrict-countries-inside-smart-phone-form-fields/ */ function wpf_dev_smart_phone_field_restrict_countries() { ?>Continue reading
document.addEventListener(‘DOMContentLoaded’, () => { const observer = new MutationObserver(() => { const form = document.querySelector(‘[data-screen]’); if (form) { const screen = form.getAttribute(‘data-screen’); if (screen === ‘confirm’) { document.body.classList.add(‘smf-confirm’); observer.disconnect(); } else if (screen === ‘complete’) { document.body.classList.add(‘smf-complete’); observer.disconnect(); } }…Continue reading