-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (87 loc) · 4.37 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./style/style.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=Roboto+Mono:wght@100;400&display=swap" rel="stylesheet">
<script src='./js/enigma.js' defer></script>
<title>Encrypt project</title>
</head>
<body>
<div>
<div class="title">
<h1>
Encrypt Project
</h1>
</div>
<form class="message">
<div class="rotor">
<select name="Select your alphabet" class="rotor-selection" id="first-selection">
<optgroup label="Select your alphabet" >
<option value="1" class="rotor-option">Alphabet 1</option>
<option value="2" class="rotor-option">Alphabet 2</option>
<option value="3" class="rotor-option">Alphabet 3</option>
<option value="4" class="rotor-option">Alphabet 4</option>
<option value="5" class="rotor-option">Alphabet 5</option>
</optgroup>
</select>
<select name="Select your alphabet" class="rotor-selection" id="second-selection">
<optgroup label="Select your alphabet">
<option value="1" class="rotor-option">Alphabet 1</option>
<option value="2" class="rotor-option">Alphabet 2</option>
<option value="3" class="rotor-option">Alphabet 3</option>
<option value="4" class="rotor-option">Alphabet 4</option>
<option value="5" class="rotor-option">Alphabet 5</option>
</optgroup>
</select>
<select name="Select your alphabet" class="rotor-selection" id="third-selection">
<optgroup label="Select your alphabet">
<option value="1" class="rotor-option">Alphabet 1</option>
<option value="2" class="rotor-option">Alphabet 2</option>
<option value="3" class="rotor-option">Alphabet 3</option>
<option value="4" class="rotor-option">Alphabet 4</option>
<option value="5" class="rotor-option">Alphabet 5</option>
</optgroup>
</select>
</div>
<div class="text-box">
<input type="text" class="text-field" id="text-field" placeholder="Type your message.">
</div>
<div class="button">
<input id="button-submit" type="submit" value="Encrypt"> </input>
</div>
</form>
<div class="encrypted">
<h3>Encrypted</h3>
<p>
<script src="./js/enigma.js">
code(getElementById('first-selection'),getElementById('second-selection'),getElementById('third-selection'),getElementById('text-field')).encrypted
</script>
</p>
</div>
<div class="decrypted">
<h3>Decrypted</h3>
<p>
<script src="./js/enigma.js">
code(getElementById('first-selection'),getElementById('second-selection'),getElementById('third-selection'),getElementById('text-field')).decrypted
</script>
</p>
</div>
</div>
<footer class="rodape">
<p>LEONARDO GIROTO GARCIA ©
<span id="current_date">
<script>
const ano = document.getElementById("current_date");
const anoAtual = new Date();
ano.innerHTML = anoAtual.getFullYear();
</script>
</span>
</p>
</footer>
</body>
</html>