-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (40 loc) · 1.41 KB
/
index.html
File metadata and controls
41 lines (40 loc) · 1.41 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
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Atomic Number Cipher Generator</title>
<link href="/style.css" rel="stylesheet" type="text/css" />
<base href="/">
</head>
<body>
<header>
<div id="title__image">
<img src="/header.png">
<h1>Number Cipher <sup>TM</sup></h1>
</div>
<h2>The best way to send secret messages to your big brain friends</h2>
</header>
<form action="/result.html">
<input name="q" style="height:70px" autocomplete="off" placeholder="Query you want to encode. (e.g. Atomic Number Cipher)" required pattern="[a-zA-Z\s]+" title="Only letters please">
<div>
<input name="alphindex" type="checkbox" style="height:28px;width:28px;">
<label for="alphindex" style="margin-left: 10px;">Turn on alphabet mode</label>
</div>
<input type="submit" class="button">
</form>
<br><br><br>
<iframe src="/decode.html"></iframe>
<script defer>
const frame = document.querySelector("iframe").contentWindow
window.onload = function(){
if (location.origin === "https://actiniumn404.github.io"){
document.querySelector("base").setAttribute("href", location.origin + "/cipher/")
}else{
document.querySelector("base").setAttribute("href", location.origin+"/")
}
frame.document.querySelectorAll("a").forEach(e=>e.setAttribute("href", "javascript:void(0)"))
}
</script>
</body>
</html>