-
Notifications
You must be signed in to change notification settings - Fork 0
/
other.html
54 lines (48 loc) · 1.47 KB
/
other.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
<!DOCTYPE html>
<html>
<head>
<title>Enchantment Table Language Converter</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
}
textarea {
width: 80%;
height: 100px;
}
.output {
margin-top: 30px;
font-size: 20px;
font-family: "Minecraft Enchantment", sans-serif;
}
a {
text-decoration: none;
color: black;
}
</style>
</head>
<body>
<button><a href="https//joercat.github.io/Other language.txt" download>Write it your self</a></button>
<br>
<br>
<textarea id="englishInput" placeholder="Enter English here..."></textarea>
<br>
<button onclick="convertText()">Write in Enchantment Table</button>
<div class="output" id="outputText"></div>
<script>
const alphabet = {
a:"अ", b:"Ж", c:"日", d:"λ", e:"م", f:"ה", g:"ष", h:"요", i:"ศ", j:"ब", k:"Я", l:"ע", m:"α", n:"ข", o:"ع", p:"ᄀ", q:"ব", r:"ζ", s:"ז", t:"ش", u:"प", v:"几", w:"Ⴀ", x:"ফ", y:"ね", z:"∞", " ": " "
};
function convertText() {
let input = document.getElementById("englishInput").value.toLowerCase();
let output = "";
for (let i = 0; i < input.length; i++) {
output += alphabet[input[i]] || input[i];
}
document.getElementById("outputText").innerText = output;
}
</script>
</body>
</html>