From 27ae4446517d787c01140fc0d3f6c4b2031ea4f7 Mon Sep 17 00:00:00 2001 From: Miguel Rodriguez Date: Sun, 3 Mar 2024 23:01:07 +0100 Subject: [PATCH] Encriptador casi update --- index.html | 6 +++--- script.js | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 476bfa4..d074ca0 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + Encriptador/Desencriptador @@ -28,8 +28,8 @@

Encriptador

Solo letras minusculas y sin acentos

- - + +

diff --git a/script.js b/script.js index 5e01151..d9e86f3 100644 --- a/script.js +++ b/script.js @@ -1,3 +1,4 @@ + function encryptText() { var inputText = document.getElementById('inputTextArea').value; var resultTextArea = document.getElementById('result'); @@ -23,5 +24,6 @@ function decryptText() { } function limpiarTextarea() { - document.getElementById('input').value = ''; -} \ No newline at end of file + var inputElement = document.getElementById('inputTextArea'); + inputElement.value = ''; +}