const emailInput = document.getElementById("email"); const submitBtn = document.getElementById("submitBtn"); const downloadBtn = document.getElementById("downloadBtn"); submitBtn.addEventListener("click", () => { const email = emailInput.value; if (validateEmail(email)) { // (Optional) Add email validation // 1. Here, you'd typically send the email to your server/backend for storage/processing. // 2. After successful email submission: submitBtn.style.display = "none"; downloadBtn.style.display = "block"; } else { alert("Please enter a valid business email address."); } }); function validateEmail(email) { const excludedDomains = ["hotmail.com", "hotmail.co.uk", "gmail.com", "gmail.co.uk"]; const domain = email.split("@")[1]; if (!email.includes("@") || excludedDomains.includes(domain.toLowerCase())) { return false; } return true; } Skip to main content

download our brochure

Download PDF