-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (58 loc) · 2.67 KB
/
index.html
File metadata and controls
74 lines (58 loc) · 2.67 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width"> <!--le decimos que adapte el contenido a dispositivos moviles-->
<script type="text/javascript" src="/JS/logica.js"></script>
<title>Encriptador-1 Desktop</title>
<link rel="stylesheet" href="/CSS/estilos.css">
</head>
<body class="fondo"> <!--dos divs metidos en clase fondo con flex para desplegar en columna-->
<!--fondo debe llevar poscion relativa para que los div se acomoden usando este como referencia-->
<div class="contenedorprincipal">
<div class="cuadroizquierdo"> <!--primer div-->
<header>
<img id = "logo" src="/img/Logo.png" alt="logo">
</header>
<div class="divtexto">
<textarea id="texto" name="texto"cols="25" rows="5" placeholder="Ingrese el texto"></textarea>
</div>
<div class="frameprincipal">
<div class="frame1">
<p id="letras">Solo letras mayusculas y minusculas</p>
</div>
<div class="frame3">
<button id="boton1">
<p id="boton1texto">Encriptar</p>
</button>
<button id="boton2">
<p id="boton2texto">Desencriptar</p>
</button>
</div>
</div>
</div>
<div class="rectangle1"> <!--segundo div-->
<img id = "muñeco" src="/img/Muñeco.png" alt="Muñeco">
<div class="frame5">
<!--Modificar el estilo del div primero-->
<textarea name="Texto" id="input" cols="40" rows="3">Ningun mensaje fue escrito</textarea>
<div id="ingresatexto">
<p>Ingresa texto a encriptar o desencriptar</p>
</div>
<button id="botonCopiar">
<p id="botonCopiarTexto">Copiar</p>
</button>
</div>
</div>
</div>
</body>
<script> //Llamada de funciones
var btn = document.querySelector("#boton1");//asignamos a btn el id #boton1
btn.onclick = encriptar;//cuando clike llamanos a funcion
var btn2 = document.querySelector("#boton2");
btn2.onclick = desencriptar;//cuando clike llamanos a funcion
var btncopiar = document.querySelector("#botonCopiar");
btncopiar.onclick = copiar;//cuando clike llamanos a funcion
</script>
</html>