Commit 10cc297 1 parent 247f892 commit 10cc297 Copy full SHA for 10cc297
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
const texto = document . getElementById ( "texto" ) ;
2
2
const nuevoTexto = document . getElementById ( "nuevoTexto" ) ;
3
+ const apartado = document . getElementById ( "apartado" ) ;
3
4
const btnCopiar = document . querySelector ( "#copiar" ) ;
4
5
const btnEncriptar = document . querySelector ( "#encriptar" ) ;
5
6
const btnDesencriptar = document . querySelector ( "#desencriptar" ) ;
@@ -39,7 +40,7 @@ function modificarDisenio() {
39
40
//Elimina la imagen
40
41
document . getElementById ( "imagenParrafos" ) . style . display = "none" ;
41
42
//Da altura al elemento apartado
42
- document . getElementById ( " apartado" ) . style . height = "80%" ;
43
+ apartado . style . height = "80%" ;
43
44
//Da altura al elemento nuevoTexto
44
45
nuevoTexto . style . height = "80%" ;
45
46
//Eliminan atributo hidden de nuevoTexto y botón copiar
You can’t perform that action at this time.
0 commit comments