-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReturnKey.html
More file actions
57 lines (51 loc) · 1.67 KB
/
ReturnKey.html
File metadata and controls
57 lines (51 loc) · 1.67 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Green Scripts | Chave Gerada</title>
<link rel="stylesheet" href="ReturnKey.css">
</head>
<body>
<div id="loader">
<div class="loader-inner">
<div class="loader-dots">
<span></span><span></span><span></span>
</div>
<p class="loader-text">carregando</p>
</div>
</div>
<div id="TopShaine" class="Shaine"></div>
<div id="LeftShaine" class="Shaine"></div>
<div id="RightShaine" class="Shaine"></div>
<div id="BottomShaine" class="Shaine"></div>
<div class="card">
<h1 id="CardTitle">Erro</h1>
<div class="key-display" id="chave">Ocorreu um erro, relate a equipe de desenvolvedores</div>
<button class="copy-btn" id="copyBtn" onclick="copiar()">
<svg class="copy-icon" viewBox="0 0 24 24">
<rect x="9" y="9" width="13" height="13" rx="2"/>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</svg>
<span id="btnText">Copiar chave</span>
</button>
</div>
<script>
function copiar() {
const texto = document.getElementById('chave').textContent;
if (!texto.trim()) return;
navigator.clipboard.writeText(texto).then(() => {
const btn = document.getElementById('copyBtn');
const txt = document.getElementById('btnText');
btn.classList.add('copied');
txt.textContent = 'Copiado!';
setTimeout(() => {
btn.classList.remove('copied');
txt.textContent = 'Copiar chave';
}, 2000);
});
}
</script>
<script src="ReturnKey.js"></script>
</body>
</html>