From 5a36d9126c7237e480f7f3ff4f99d70067548377 Mon Sep 17 00:00:00 2001 From: Miguel Rodriguez Date: Sun, 3 Mar 2024 23:13:01 +0100 Subject: [PATCH] Encriptador casi update... --- index.html | 4 ++-- script.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index a3233db..1270e8b 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,8 @@

Encriptador

Solo letras minusculas y sin acentos

- - + +

diff --git a/script.js b/script.js index d9e86f3..d875d27 100644 --- a/script.js +++ b/script.js @@ -9,6 +9,8 @@ function encryptText() { .replace(/o/g, 'ober') .replace(/u/g, 'ufat'); resultTextArea.value = encryptedText; + var inputElement = document.getElementById('inputTextArea'); + inputElement.value = ''; } function decryptText() { @@ -21,9 +23,7 @@ function decryptText() { .replace(/imes/g, 'i') .replace(/enter/g, 'e'); resultTextArea.value = decryptedText; -} - -function limpiarTextarea() { var inputElement = document.getElementById('inputTextArea'); inputElement.value = ''; } +