From 909845aa2568c8bf64c2f3718076df5df080bd66 Mon Sep 17 00:00:00 2001 From: Agustin Lautaro Moneta <46840139@terciariourquiza.edu.ar> Date: Fri, 24 Apr 2026 16:08:41 -0300 Subject: [PATCH] Se agrego la logica con el archivo agregado script.js --- index.html | 1 + script.js | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 script.js diff --git a/index.html b/index.html index 509f3f7..ce8d643 100644 --- a/index.html +++ b/index.html @@ -85,5 +85,6 @@ + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..c44ce0a --- /dev/null +++ b/script.js @@ -0,0 +1,13 @@ +var boton = document.getElementById('Suscripcion'); +var formulario = document.getElementById('seccionFormulario'); +boton.onclick = function(e) { + e.preventDefault(); + if (formulario.style.display == "none") { + formulario.style.display = "block"; + boton.innerHTML = "Cerrar"; + } + else { + formulario.style.display = "none"; + boton.innerHTML = "Suscribirse"; + } +}; \ No newline at end of file