form autofocus

document.addEventListener(‘om.Form.autofocus’, function(event) { let omForm = event.detail.Form; omForm.autofocus = false; }Continue reading

om-custom-redirect-close.js

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

om-custom-redirect-all-close.js

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

Untitled Snippet (copy)

(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); }); </scriptContinue reading

Untitled Snippet

(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); });Continue reading

3D Viewer Tracking

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