diff --git a/assets/js/main.js b/assets/js/main.js index 39e62d7..7adeed5 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,11 +1,3 @@ -/** -* Template Name: PhotoFolio -* Template URL: https://bootstrapmade.com/photofolio-bootstrap-photography-website-template/ -* Updated: Mar 17 2024 with Bootstrap v5.3.3 -* Author: BootstrapMade.com -* License: https://bootstrapmade.com/license/ -*/ - document.addEventListener('DOMContentLoaded', () => { "use strict"; @@ -172,4 +164,11 @@ document.addEventListener('DOMContentLoaded', () => { aos_init(); }); -}); \ No newline at end of file + // Escuchar el evento submit del formulario + document.querySelector('.php-email-form').addEventListener('submit', function(event) { + // Mostrar el mensaje de "Cargando" + document.querySelector('.loading').style.display = 'block'; + // Ocultar el mensaje de "Mensaje enviado" + document.querySelector('.sent-message').style.display = 'none'; + }); +}); diff --git a/contact.html b/contact.html index 389a3fe..8e92fc3 100644 --- a/contact.html +++ b/contact.html @@ -120,7 +120,7 @@

Call:

-
Name @@ -136,15 +136,15 @@

Call:

-
Loading
- -
Su mensaje ha sido enviado. Muchas Gracias!
+ +
+
- +
@@ -199,4 +199,4 @@

Call:

- + \ No newline at end of file