-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (145 loc) · 7.3 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Aurebesh Translator</title>
<!-- Informações da página -->
<link rel="home" href="https://rodcordeiro.github.io/Aurebesh-Translator/">
<!-- Informações sobre o Site quando o link é compartilhado-->
<meta property='og:type' content='website'>
<meta property='og:locale' content='pt_BR' />
<meta property="og:image" content="https://rodcordeiro.github.io/Aurebesh-Translator/Arquivos/fav_ImperioSith/android-icon-192x192.png"/>
<meta property='og:site_name' content='Aurebesh Translator'>
<meta property="og:title" content="Aurebesh Translator">
<meta property='og:determiner' content='the'>
<meta name="og:url" content="https://rodcordeiro.github.io/Aurebesh-Translator/" />
<meta name="og:description" content="Aurebesh translator: Aurebesh is the alphabet created to the Intergalatic language from Star Wars© universe">
<meta property='og:image:secure_url' content='https://rodcordeiro.github.io/Aurebesh-Translator/Arquivos/fav_ImperioSith/android-icon-192x192.png'/>
<meta name='twitter:card' content='summary' />
<meta name='twitter:description' content="Aurebesh translator: Aurebesh is the alphabet created to the Intergalatic language from Star Wars© universe">
<meta name='twitter:title' content="Aurebesh Translator">
<meta name='twitter:site' content='@drigocordeiro13' />
<meta name='twitter:image' content='https://rodcordeiro.github.io/Aurebesh-Translator/Arquivos/fav_ImperioSith/android-icon-192x192.png'/>
<meta name='twitter:creator' content='@drigocordeiro13' />
<link rel='prefetch' href="https://rodcordeiro.github.io/Aurebesh-Translator/">
<link rel='prerender' href="https://rodcordeiro.github.io/Aurebesh-Translator/">
<meta itemprop='name' content="Aurebesh Translator">
<meta itemprop='url' content="https://rodcordeiro.github.io/Aurebesh-Translator/">
<meta property="title" content="Aurebesh Translator">
<meta property='description' content="Aurebesh translator: Aurebesh is the alphabet created to the Intergalatic language from Star Wars© universe">
<link rel="shortcut icon" type="image/ico" href="https://rodcordeiro.github.io/Aurebesh-Translator/Arquivos/fav_ImperioSith/favicon.ico" />
<!-- Outros dados como o site, como permissão para indexação do site, faixa etária, idioma, etc. -->
<meta name='robots' content='index'>
<meta name='rating' content='general'>
<meta name='language' content='pt-br'>
<!-- Informações sobre o Autor -->
<meta property='author' content='Rodrigo Cordeiro'>
<meta name='dc.creator.address' content='rodrigomendoncca@gmail.com'>
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="Arquivos/style.css">
<link rel="apple-touch-icon" sizes="57x57" href="Arquivos/fav_ImperioSith/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="Arquivos/fav_ImperioSith/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="Arquivos/fav_ImperioSith/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="Arquivos/fav_ImperioSith/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="Arquivos/fav_ImperioSith/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="Arquivos/fav_ImperioSith/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="Arquivos/fav_ImperioSith/android-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="Arquivos/fav_ImperioSith/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="Arquivos/fav_ImperioSith/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="Arquivos/fav_ImperioSith/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="Arquivos/fav_ImperioSith/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="Arquivos/fav_ImperioSith/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="Arquivos/fav_ImperioSith/favicon-16x16.png">
<link rel="manifest" href="Arquivos/fav_ImperioSith/manifest.json">
<meta name="msapplication-TileColor" content="#000">
<meta name="msapplication-TileImage" content="Arquivos/fav_ImperioSith/ms-icon-144x144.png">
<meta name="theme-color" content="#777">
</head>
<body>
<audio autoplay>
<source src="Arquivos/Marcha.ogg" type="audio/ogg">
<source src="Arquivos/Marcha.mp3" type="audio/mpeg">
<source src="Arquivos/Marcha.wav" type="audio/wav">
</audio>
<div class="container">
<header>
<img src="Arquivos/SithEmblemTOR.png" alt="Sith emblem">
<span>Cordeiro's DEV</span>
</header>
<div class="content">
<h1>Bem vindo ao meu transcitor de Aurebesh</h1>
<p>
Esta página foi desenvolvida para disseminar o conhecimento sobre <strong>Aurebesh</strong>, o alfabeto desenvolvido no universo Star Wars para a lingua Intergaláctica, uma segunda língua mãe para quase todos os planetas.
<a href="https://starwars.fandom.com/pt/wiki/Legends:Aurebesh" target="_blank">Veja mais na Fandom Star Wars</a>
</p>
<textarea placeholder="Write here..." id="txt" ></textarea>
<button class="btn btn-3 btn-3e" onClick="aurebesh()">Traduzir</button>
<textarea class="aurebesh hide" placeholder="Siths WIN!" id="out"></textarea>
</div>
<footer>
Code with <3 by Cordeiro
</footer>
</div>
<script>
const replacements = {
"á":"a",
"à":"a",
"ã":"a",
"â":"a",
"é":"e",
"ê":"e",
"ẽ":"e",
"è":"e",
"í":"i",
"ì":"i",
"ĩ":"i",
"î":"i",
"ó":"o",
"ò":"o",
"õ":"o",
"ô":"o",
"ú":"u",
"ù":"u",
"ũ":"u",
"û":"u",
"Á":"A",
"À":"A",
"Ã":"A",
"Â":"A",
"É":"E",
"È":"E",
"Ẽ":"E",
"Ê":"E",
"Í":"I",
"Ì":"I",
"Ĩ":"I",
"Î":"I",
"Ó":"O",
"Ò":"O",
"Õ":"O",
"Ô":"O",
"Ú":"U",
"Ù":"U",
"Ũ":"U",
"Û":"U",
"ç":"c",
"Ç":"C"
}
function show(){
document.getElementById("out").classList.remove("hide");
}
function replaceAccents(letter){
if(replacements[letter]) return (replacements[letter]);
return letter;
}
function aurebesh(){
var text = document.getElementById("txt").value;
// text.forEach(letter => replaceAccents(letter))
document.getElementById("out").innerHTML = text;
show()
}
</script>
</body>
</html>