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