-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (76 loc) · 2.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Caesar Cipher</title>
<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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="title">
<h1>Caesar Cipher</h1>
</div>
<div class="container">
<div>
<div class="input_field">
<p><label for="plain_text">Enter text to encode/decode:</label></p>
<textarea
name="plain_text"
id="plain_text"
rows="20"
cols="60"
></textarea>
</div>
<div>
<label for="shift_amount">Shift amount:</label>
<input
type="number"
name="shift_amount"
id="shift_amount"
class="shift_amount"
/>
<div class="radio_buttons">
<div>
<input
type="radio"
name="direction_type"
id="encode"
value="encode"
/>
<label for="encode">Encode</label>
</div>
<div>
<input
type="radio"
name="direction_type"
id="decode"
value="decode"
/>
<label for="decode">Decode</label>
</div>
</div>
<button type="submit" class="submit_button" onclick="getValue()">
Submit
</button>
</div>
</div>
<div>
<p><label for="output">Output:</label></p>
<textarea
name="output"
id="output"
rows="20"
cols="60"
readonly
></textarea>
</div>
</div>
<script src="script.js"></script>
</body>
</html>