Se agrego la logica con el archivo agregado script.js

This commit is contained in:
2026-04-24 16:08:41 -03:00
parent 66bd4f8cd3
commit 909845aa25
2 changed files with 14 additions and 0 deletions

View File

@@ -85,5 +85,6 @@
<footer> <footer>
<p>&copy; 2026 Fluxio Cloud Gaming - Rosario, Santa Fe.</p> <p>&copy; 2026 Fluxio Cloud Gaming - Rosario, Santa Fe.</p>
</footer> </footer>
<script src="script.js"></script>
</body> </body>
</html> </html>

13
script.js Normal file
View File

@@ -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";
}
};