🎁 Get your free gift!
Greenway product | Catalog with prices - USA America
document.addEventListener("DOMContentLoaded", function() { const orderButtons = document.querySelectorAll(".order-button"); const popup = document.getElementById("orderPopup"); const closePopup = document.querySelector(".close-popup"); const orderForm = document.getElementById("orderForm"); orderButtons.forEach(button => { button.addEventListener("click", function() { popup.style.display = "flex"; }); }); closePopup.addEventListener("click", function() { popup.style.display = "none"; }); orderForm.addEventListener("submit", function(event) { event.preventDefault(); const name = document.getElementById("name").value; const phone = document.getElementById("phone").value; const location = document.getElementById("location").value; const message = `New Order Request: Name: ${name} Phone: ${phone} Location: ${location}`; const whatsappNumber = "+16026943662"; const whatsappLink = `https://wa.me/${whatsappNumber}?text=${encodeURIComponent(message)}`; window.open(whatsappLink, "_blank"); }); });