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
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When any link contains ‘external’ in the rel attribute $(‘a[rel*=external]’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When hovering over any element with the ‘.content’ class – change as you require $(‘.content’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading
jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; $(‘body’).on(‘mouseover’, ‘[href=”https://app.monstercampaigns.com/c/’ + campaignSlug + ‘/”]’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading