mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-09 18:03:06 +01:00
feat(ch 5): JS second block solved & accesoGenders.html
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
<script>
|
||||
function cambiarTamanio(factor) {
|
||||
let parrafo = document.getElementById("texto");
|
||||
let tamañoActual = window.getComputedStyle(parrafo).fontSize;
|
||||
let nuevoTamaño = parseFloat(tamañoActual) + factor;
|
||||
parrafo.style.fontSize = nuevoTamaño + "px";
|
||||
let tamanioActual = window.getComputedStyle(parrafo).fontSize;
|
||||
let nuevoTamanio = parseFloat(tamanioActual) + factor;
|
||||
parrafo.style.fontSize = nuevoTamanio + "px";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user