function addNumbers() { // Get input values const num1 = parseFloat(document.getElementById(‘num1’).value); const num2 = parseFloat(document.getElementById(‘num2’).value); // Check if inputs are valid numbers if (isNaN(num1) || isNaN(num2)) { alert(‘Please enter valid numbers.’); return; } // Perform addition const sum = num1…Continue reading
(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