diff --git a/assets/js/script.js b/assets/js/script.js index 831763b..2806976 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -37,4 +37,22 @@ window.addEventListener("scroll", function () { header.classList.remove("active"); goTopBtn.classList.remove("active"); } +}); + +document.getElementById('newsletterForm').addEventListener('submit', function (event) { + event.preventDefault(); // Prevent the default form submission behavior + + // Simulate form submission (e.g., sending data to a server) + setTimeout(function () { + // Hide the form inputs and button + + document.querySelector('.btn-primary').style.display = 'none'; + + // Show the success message + document.getElementById('successMessage').style.display = 'block'; + // Hide the success message after 5 seconds + setTimeout(function () { + document.getElementById('successMessage').style.display = 'none'; + }, 5000); // 5000 milliseconds = 5 seconds +}, 500); // Simulate a delay for form processing }); \ No newline at end of file diff --git a/index.html b/index.html index 636ddd4..22fa6de 100644 --- a/index.html +++ b/index.html @@ -1476,12 +1476,21 @@

24/7 Support

Authoritatively morph 24/7 potentialities with error-free partnerships.

-
- - + + + +
- +