-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (204 loc) · 13.4 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./assets/css/bgSVGs.css" />
<link rel="stylesheet" href="./assets/css/darkTheme.css" />
<link rel="stylesheet" href="./assets/css/lightTheme.css" />
<link rel="stylesheet" href="./assets/css/modal.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="shortcut icon"
href="assets/img/icon-code.svg"
type="image/x-icon"
/>
<title>Codificador</title>
</head>
<body>
<svg id="background" viewBox="0 0 535 1010">
<g transform="matrix(1,0,0,1,-5.78389,9.70367)">
<path>
<animate
attributeName="d"
dur="30s"
repeatCount="indefinite"
values="
M538.921,-9.704C525.139,196.113 217.149,810.128 5.784,999.06L5.784,-9.704L538.921,-9.704Z;
M538.921,-9.704C535.788,83.423 318.108,779.933 5.784,999.06L5.784,-9.704L538.921,-9.704Z;
M523.705,-9.704C520.955,137.165 336.327,654.319 5.784,977.033L5.784,-9.704L523.705,-9.704Z;
M495.613,-9.704C462.289,181.837 363.69,585.248 5.784,1000.3L5.784,-9.704L495.613,-9.704Z;
M538.921,-9.704C525.139,196.113 217.149,810.128 5.784,999.06L5.784,-9.704L538.921,-9.704Z
"
></animate>
</path>
</g>
</svg>
<svg id="bubble" viewBox="0 0 450 400">
<g
transform="matrix(0.263627,-0.317343,0.302752,0.251506,47.9573,248.867)"
>
<path>
<animate
attributeName="d"
dur="20s"
repeatCount="indefinite"
values="
M-135.424,202.132c-21.237,-249.227 1006.93,-360.949 914.079,116.688c-34.175,175.812 -222.237,424.599 -354.082,374.678c-138.069,-52.278 -525.497,-273.834 -559.997,-491.366Z;
M-125.547,193.531c-21.237,-249.226 1029.55,-344.121 904.202,125.289c-45.549,170.574 -205.214,400.944 -354.082,374.678c-144.764,-25.542 -534.438,-315.935 -550.12,-499.967Z;
M-125.547,193.531c17.379,-236.609 936.464,-300.366 904.202,125.289c-13.383,176.574 -203.878,375.765 -354.506,386.295c-136.234,9.523 -563.226,-327.365 -549.696,-511.584Z;
M-119.529,198.145c-9.567,-149.442 980.815,-359.019 898.184,120.675c-29.723,172.548 -211.46,414.879 -358.356,378.399c-80.923,-20.097 -528.026,-314.724 -539.828,-499.074Z;
M-135.424,202.132c-21.237,-249.227 1006.93,-360.949 914.079,116.688c-34.175,175.812 -222.237,424.599 -354.082,374.678c-138.069,-52.278 -525.497,-273.834 -559.997,-491.366Z
"
></animate>
</path>
</g>
</svg>
<svg id="dots" viewBox="0 0 145 145">
<path
d="M41.81,136.441c1.427,1.427 1.427,3.743 0,5.17c-1.427,1.426 -3.743,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.427,-1.427 3.743,-1.427 5.17,0Zm66.455,-0.01c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-33.265,-0.017c1.427,1.426 1.427,3.743 0,5.17c-1.426,1.426 -3.743,1.426 -5.169,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.426,-1.427 3.743,-1.427 5.169,0Zm-16.551,-16.551c1.427,1.426 1.427,3.743 0,5.17c-1.426,1.426 -3.743,1.426 -5.17,0c-1.426,-1.427 -1.426,-3.744 0,-5.17c1.427,-1.427 3.744,-1.427 5.17,0Zm-33.241,-0.025c1.426,1.427 1.426,3.744 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.426,-1.426 3.743,-1.426 5.17,0Zm66.416,-0.048c1.426,1.427 1.426,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm33.33,-0.047c1.426,1.426 1.426,3.743 0,5.17c-1.427,1.426 -3.744,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm-49.881,-16.504c1.426,1.427 1.426,3.744 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.426,-1.426 3.743,-1.426 5.17,0Zm-66.468,-0.003c1.427,1.427 1.427,3.743 0,5.17c-1.426,1.427 -3.743,1.427 -5.17,0c-1.426,-1.427 -1.426,-3.743 0,-5.17c1.427,-1.427 3.744,-1.427 5.17,0Zm33.201,-0.017c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm99.767,-0.096c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-33.261,-0.021c1.427,1.426 1.427,3.743 0,5.17c-1.426,1.426 -3.743,1.426 -5.169,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.426,-1.427 3.743,-1.427 5.169,0Zm-83.098,-16.475c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm33.215,-0.031c1.427,1.426 1.427,3.743 0,5.17c-1.427,1.426 -3.743,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.427,-1.427 3.743,-1.427 5.17,0Zm66.46,-0.071c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-33.153,0c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-83.172,-16.548c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm33.228,-0.018c1.427,1.427 1.427,3.743 0,5.17c-1.426,1.427 -3.743,1.427 -5.17,0c-1.426,-1.427 -1.426,-3.743 0,-5.17c1.427,-1.427 3.744,-1.427 5.17,0Zm33.326,-0.052c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm33.252,-0.016c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm33.218,-0.065c1.427,1.427 1.427,3.743 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.427,-1.427 3.743,-1.427 5.17,0Zm-116.401,-16.472c1.427,1.426 1.427,3.743 0,5.17c-1.427,1.426 -3.743,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.427,-1.427 3.743,-1.427 5.17,0Zm33.339,-0.039c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm33.226,-0.042c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm33.26,-0.023c1.426,1.426 1.426,3.743 0,5.17c-1.427,1.426 -3.744,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm-116.459,-16.524c1.427,1.426 1.427,3.743 0,5.17c-1.427,1.426 -3.743,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.427,-1.427 3.743,-1.427 5.17,0Zm66.607,-0.045c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-33.284,-0.016c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.426 -3.744,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm99.741,-0.021c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-33.205,-0.032c1.427,1.427 1.427,3.744 0,5.17c-1.426,1.427 -3.743,1.427 -5.17,0c-1.426,-1.426 -1.426,-3.743 0,-5.17c1.427,-1.426 3.744,-1.426 5.17,0Zm-83.179,-16.567c1.427,1.427 1.427,3.744 0,5.17c-1.426,1.427 -3.743,1.427 -5.17,0c-1.426,-1.426 -1.426,-3.743 0,-5.17c1.427,-1.426 3.744,-1.426 5.17,0Zm66.569,-0.005c1.426,1.426 1.426,3.743 0,5.17c-1.427,1.426 -3.744,1.426 -5.17,0c-1.427,-1.427 -1.427,-3.744 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm-33.292,-0.009c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm66.489,-0.005c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm-16.592,-16.592c1.427,1.427 1.427,3.744 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.427,-1.426 -1.427,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Zm-66.528,-0.034c1.426,1.427 1.426,3.743 0,5.17c-1.427,1.427 -3.744,1.427 -5.17,0c-1.427,-1.427 -1.427,-3.743 0,-5.17c1.426,-1.427 3.743,-1.427 5.17,0Zm33.272,-0.011c1.427,1.427 1.427,3.743 0,5.17c-1.427,1.427 -3.743,1.427 -5.17,0c-1.426,-1.427 -1.426,-3.743 0,-5.17c1.427,-1.426 3.743,-1.426 5.17,0Z"
></path>
</svg>
<div class="btn-theme">
<label class="switch">
<input type="checkbox" id="mode" class="toggle" />
<span class="slider round"></span>
</label>
<p id="theme"></p>
</div>
<main>
<div id="myModal" class="modal">
<div class="modal-content">
<img src="/assets/img/sucess.svg" alt="" />
<p>Texto copiado com sucesso!</p>
</div>
</div>
<div class="title">
<h1>Codificador</h1>
</div>
<section>
<div class="container">
<div class="container-input-area">
<div class="input-area-content">
<button
class="btn btn-clear btn-hidden"
onclick="clearText()"
id="btnClear"
>
<i class="fa-solid fa-xmark"></i>
</button>
<div class="subtitle title-speak">
<h2>Criptografar / Descriptografar</h2>
<button
class="btn btn-speak btn-hidden"
id="btnSpeak"
onclick="speakText('inputText')"
>
<i class="fa-solid fa-volume-high"></i>
</button>
</div>
<div class="input-area-textarea">
<textarea
name="encode-text"
id="inputText"
placeholder="Digite aqui o seu texto para Criptografar ou Descriptografar..."
oninput="verifyButtons()"
></textarea>
</div>
<div class="container-btn info-message">
<div class="info-message-text">
<i class="fa-solid fa-circle-info"></i>
<p>A codificação não considera acentos.</p>
</div>
<button
onclick="processText()"
class="btn btn-encode"
id="btn-encode"
></button>
</div>
</div>
</div>
<div class="container-output-area">
<div class="input-area-content">
<div class="subtitle title-speak">
<h2>Resultado</h2>
<button
class="btn btn-speak btn-hidden"
id="btnSpeakOutput"
onclick="speakText('outputText')"
>
<i class="fa-solid fa-volume-high"></i>
</button>
</div>
<div class="output-empty-message" id="outputEmptyMessage">
<div class="no-decode-message">
<h3>Nenhuma mensagem encontrada</h3>
<p>
Digite o texto que você deseja criptografar ou
descriptografar
</p>
</div>
<img src="./assets/img/6763396.webp" alt="no-message-img" />
</div>
<div class="output-area-textarea">
<textarea
name="encode-text"
id="outputText"
placeholder=""
oninput="verifyButtons()"
disabled
></textarea>
</div>
<div class="container-btn copy-container">
<button onclick="copyToClipboard()" class="btn btn-copy">
<i class="fa-regular fa-copy"></i>
Copiar
</button>
</div>
</div>
</div>
</div>
</section>
</main>
<footer>
<div class="container-copyright">
<div class="copyright">
©
<span id="currentYear"></span>
CarolTcts. Todos os direitos reservados.
</div>
<div class="footer-social-icons">
<a href="https://github.com/Major2571" target="_blank">
<i class="fa-brands fa-square-github"></i>
</a>
<a href="https://www.linkedin.com/in/caroline-tacats" target="_blank">
<i class="fa-brands fa-linkedin"></i>
</a>
</div>
</div>
</footer>
</body>
<script src="./assets/js/Theme.js"></script>
<script src="./assets/js/App.js"></script>
<script src="./assets/js/TextManipulation.js"></script>
</html>