-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunicodify.html
33 lines (33 loc) · 1.25 KB
/
unicodify.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>
<head>
<title>unicodify | tools.nex.li</title>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<h1>unicodify</h1>
<textarea id="input" style="min-width:100%;max-width:100%;height:100px" autofocus>Converts clear text like this into Unicode text like that.</textarea>
<ul id="output" style="list-style-type:none;padding:0"></ul>
<p>Looking for a way to undo this unholy transaction? <a href="/ununicodify">ununicodify</a></p>
<p>Copyright (c) 2017-2019, <a href="https://hell.sh/" target="_blank">Hell.sh</a> · <a href="https://hell.sh/privacy" target="_blank">Privacy Policy</a></p>
<script src="unicode_alphabets.js"></script>
<script>
document.getElementById("input").oninput=function()
{
var text=document.getElementById("input").value;
document.getElementById("output").textContent="";
for(var name in unholyAlphabets)
{
var unholyText=text,li=document.createElement("li");
for(var i in unholyAlphabets[name])
{
unholyText=unholyText.split(alphabet[i]).join(unholyAlphabets[name][i])
}
li.textContent=name+": "+unholyText;
document.getElementById("output").appendChild(li)
}
};
document.getElementById("input").oninput()
</script>
</body>
</html>