-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Caesar Cipher Encoder</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=Source+Code+Pro:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<div>
<h1>Caesar Cipher Encoder</h1>
<div>
<img
src="https://cdn.britannica.com/55/102155-050-285AC32A/Caesar-Augustus-marble-statue-Vatican-City-Museums.jpg?w=740&h=416&c=crop">
</div>
<input type="text" placeholder="Enter text to encode"
onkeydown="if(event.keyCode == 13) document.getElementById('submit').click()" id="input" />
<input type="number" placeholder="Key"
onkeydown="if(event.keyCode == 13) document.getElementById('submit').click()" id="val" />
<button type="button" onclick=rot13() id="submit">Encode</button>
<p id="result">The result will be shown here</p>
<p id="text">Each character is replaced by another character that is separated from it in the alphabet by a
fixed number of positions.</p>
</div>
<script src="./script.js"></script>
</body>
</html>