Skip to content

Commit

Permalink
Encriptador casi update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrp500 committed Mar 3, 2024
1 parent 22d6288 commit 27ae444
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<link rel="stylesheet" href="reset.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Encriptador/Desencriptador</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand All @@ -28,8 +28,8 @@ <h1>Encriptador<br>
<textarea id="inputTextArea" rows="18" cols="40" placeholder="Ingrese texto aquí" class="campotransparente-uno"></textarea>
<p>Solo letras minusculas y sin acentos</p>
<div style="text-align: center;">
<button class="button-uno" onclick="encryptText(); limpiarTextarea();">Encriptar!</button>
<button class="button-dos" onclick="decryptText(); limpiarTextarea();">Desencriptar!</button>
<button class="button-uno" onclick="encryptText(), limpiarTextarea()">Encriptar!</button>
<button class="button-dos" onclick="decryptText(), limpiarTextarea();">Desencriptar!</button>
</div>
</div>
<div class="output"><textarea id="result" rows="18" cols="32" class="campotransparente-dos"></textarea><br>
Expand Down
6 changes: 4 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

function encryptText() {
var inputText = document.getElementById('inputTextArea').value;
var resultTextArea = document.getElementById('result');
Expand All @@ -23,5 +24,6 @@ function decryptText() {
}

function limpiarTextarea() {
document.getElementById('input').value = '';
}
var inputElement = document.getElementById('inputTextArea');
inputElement.value = '';
}

0 comments on commit 27ae444

Please sign in to comment.