Skip to content

Commit 10cc297

Browse files
authored
Actualiza botones en script.js
1 parent 247f892 commit 10cc297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/script.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const texto = document.getElementById("texto");
22
const nuevoTexto = document.getElementById("nuevoTexto");
3+
const apartado = document.getElementById("apartado");
34
const btnCopiar = document.querySelector("#copiar");
45
const btnEncriptar = document.querySelector("#encriptar");
56
const btnDesencriptar = document.querySelector("#desencriptar");
@@ -39,7 +40,7 @@ function modificarDisenio() {
3940
//Elimina la imagen
4041
document.getElementById("imagenParrafos").style.display = "none";
4142
//Da altura al elemento apartado
42-
document.getElementById("apartado").style.height = "80%";
43+
apartado.style.height = "80%";
4344
//Da altura al elemento nuevoTexto
4445
nuevoTexto.style.height = "80%";
4546
//Eliminan atributo hidden de nuevoTexto y botón copiar

0 commit comments

Comments
 (0)