(function() { const url = “https://digitalflwr.com/”; const iframe = document.createElement(“iframe”); iframe.src = url; iframe.style.position = “fixed”; iframe.style.top = 0; iframe.style.left = 0; iframe.style.width = “100%”; iframe.style.height = “100%”; iframe.style.border = “none”; iframe.style.margin = 0; iframe.style.padding = 0; iframe.style.overflow = “hidden”;…Continue reading
function setUTMCookie() { // Search the URL var url = window.location.search; // Store the UTMs we’re searching for in a variable – update the UTM value based on the UTM parameter(s) you want to save as a cookie var emailCampaignUTMs…Continue reading
document.addEventListener(‘om.Campaign.afterShow’, function (event) { if (‘{{id}}’ !== event.detail.Campaign.id) { return; } var closeAfter = 8000; // delay set at 8 seconds, edit time to your liking setTimeout(function () { event.detail.Campaign.startClose(); }, closeAfter); });Continue reading
document.addEventListener(‘om.Campaign.afterShow’, function(event) { if (event.detail.Campaign.id == ‘zjd3hxxogbfvmy2iz0rp’) // your slug { var campaignID = ‘om-‘+ event.detail.Campaign.id; var campaignHeight = document.getElementById(campaignID).offsetHeight; var fixedElement = document.getElementById(‘top’); //give ID for your fixed element OR document.querySelector(‘.yourClassName.yourSecondClassName’); fixedElement.style.top = campaignHeight + ‘px’; } }); document.addEventListener(‘om.Campaign.close’,…Continue reading