-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (48 loc) · 2.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="es">
<head>
<link rel="stylesheet" href="reset.css">
<meta charset="UTF-8">
<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">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap" rel="stylesheet">
<script src="script.js" defer></script>
<script>
function copyText() {
var copyText = document.getElementById('result');
copyText.select();
document.execCommand('copy');
}
</script>
</head>
<body>
<h1><img class="candado" src="imagenes/candado.svg" alt="Candado">
<span class ="encriptador">Encriptador</span><br>
<span class = "desencriptador">Desencriptador</span>
</h1>
<label for="inputTextArea"></label>
<div class="input">
<textarea id="inputTextArea" rows="19" cols="32" placeholder="Ingrese texto aquí" class="campotransparente-uno"></textarea>
<p>
<img class="circulo-exclamacion" src="imagenes/circulo-exclamacion-cierre.svg" alt="Circulo-Exclamacion">
Solo letras minusculas y sin acentos
</p>
<div style="text-align: center;">
<button class="button-uno" onclick="encryptText();">Encriptar!</button>
<button class="button-dos" onclick="decryptText();">Desencriptar!</button>
</div>
</div>
<div class="output">
<div class="detective">
<img id="clickable-image" src="imagenes/detective.svg" alt="Detective" onclick="convertToTextArea();">
</div>
<textarea id="result" rows="20" cols="32" class="campotransparente-dos" onclick="convertToTextArea();"></textarea><br>
<div class="divbutton-tres">
<button class="button-tres" onclick="copyText();">Copiar</button>
</div>
</div>
</body>
</html>