change view success
om{{id}}.changeView(‘success’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
om{{id}}.changeView(‘success’);Continue reading
om{{id}}.changeView(‘optin’);Continue reading
om{{id}}.changeView(‘yesno’);Continue reading
om{{id}}.Listeners.convert();Continue reading
document.addEventListener(‘om.Form.autofocus’, function(event) { let omForm = event.detail.Form; omForm.autofocus = false; }Continue reading
jQuery(document).ready(function($){ function omRedirect() { var url = “https://optinmonster.com”; $(location).attr(‘href’,url); } $(document).on(‘OptinMonsterOnClose’, function(event, data, object){ if(data.optin = ‘YOUR_OPTIN_SLUG_HERE’) { omRedirect(); } }); });Continue reading
jQuery(document).ready(function($){ function omRedirect() { var url = “https://optinmonster.com”; $(location).attr(‘href’,url); } $(document).on(‘OptinMonsterOnClose’, function(event, data, object){ omRedirect(); }); });Continue reading
(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); }); </scriptContinue reading
(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); });Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { const viewerCanvas = document.querySelector(‘.userInput canvas’); if (!viewerCanvas) return; // track when user starts grabbing viewerCanvas.addEventListener(‘mousedown’, function() { if (typeof gtag === ‘function’) { gtag(‘event’, ‘grab_start_3d’, { event_category: ‘Viewer 3D’, event_label: ‘mousedown’ }); } }); // track when…Continue reading