-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (100 loc) · 3.17 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>JavaScript Example</title>
<link rel="stylesheet" href="index.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=Signika+Negative&display=swap"
rel="stylesheet"
/>
</head>
<body>
<main>
<div class="row">
<h1>Decipher the Cipher</h1>
<p class="sub-heading">Welcome to DPT Vanilla Cipher encoder/decoder</p>
<textarea id="text-to-code"></textarea>
</div>
<div class="row">
<div id="caesar-cipher" class="cipher-container">
<div class="cipher-settings">
<h2>Caesar cipher</h2>
<label>
Rotation:
<input
id="caesar-shift"
type="number"
value="1"
min="0"
max="25"
/>
</label>
<div class="switch-container">
<span id="caesar-switch-label">Encoding</span>
<label class="switch">
<input
type="checkbox"
id="caesar-encode"
name="caesar-encode-switch"
checked
/>
<span class="slider"></span>
</label>
</div>
</div>
<p id="caesar-coded" class="coded-decoded-text"></p>
</div>
<div id="rot13-cipher" class="cipher-container">
<div class="cipher-settings">
<h2>Rot13 cipher</h2>
<div class="switch-container">
<span id="rot13-switch-label">Encoding</span>
<label class="switch">
<input
type="checkbox"
id="rot13-encode"
name="rot13-encode-switch"
checked
/>
<span class="slider"></span>
</label>
</div>
</div>
<p id="rot13-coded" class="coded-decoded-text"></p>
</div>
<div id="vigenere-cipher" class="cipher-container">
<div class="cipher-settings">
<h2>Vigenere cipher</h2>
<label>
Keyword:
<input id="vigenere-keyword" type="text" />
</label>
<div class="switch-container">
<span id="vigenere-switch-label">Encoding</span>
<label class="switch">
<input
type="checkbox"
id="vigenere-encode"
name="vigenere-encode-switch"
checked
/>
<span class="slider"></span>
</label>
</div>
</div>
<p id="vigenere-coded" class="coded-decoded-text"></p>
</div>
</div>
<footer>
<div id="todays-date"></div>
<div id="quote-text"></div>
<div id="quote-author"></div>
</footer>
</main>
<script type="text/javascript" src="dist/main.js"></script>
</body>
</html>