-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathencode.html
More file actions
32 lines (28 loc) · 1.31 KB
/
encode.html
File metadata and controls
32 lines (28 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Shift Cipher</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1 class="discrete-math-title">Discrete Math</h1>
<button class="devs-title" onclick="redirectToHomePage()">Home</button>
</div>
<form class="input-text-form">
<p class="instruction-text">Enter your message to be encrypted:</p>
<input type="text" id="uncoded-message" name="uncoded-message" placeholder="e.g. The quick brown fox..." required oninput="updateOutputEncode()">
</form>
<form class="integer-form">
<p class="instruction-text">Enter shift key:</p>
<input type="number" id="shift-key-encode" name="shift-key-encode" placeholder="e.g. 3" required step="1" min="-26" max="26" oninput="updateOutputEncode()">
</form>
<p class="instruction-text">Caesar-encoded message (copy and paste):</p>
<p id="display-message-encode" class="display-message">Message will appear here...</p>
<script src="script.js"></script>
</body>
</html>