From 4a3392a7642ee767870929aefbfb1d1405ea4587 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Sun, 17 Aug 2025 22:21:55 -0300 Subject: [PATCH] fix: refresh louco --- en/index.html | 28 ++++++++++------------------ index.html | 23 +++++++---------------- 2 files changed, 17 insertions(+), 34 deletions(-) diff --git a/en/index.html b/en/index.html index 8a9ec2c..15b0698 100644 --- a/en/index.html +++ b/en/index.html @@ -34,20 +34,6 @@ - - - @@ -871,7 +857,7 @@ Email:
- + @@ -889,7 +875,6 @@
- @@ -965,7 +950,7 @@ const mailto = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`; - // Tenta abrir o cliente de email + // Try to open email client const link = document.createElement('a'); link.href = mailto; document.body.appendChild(link); @@ -975,7 +960,7 @@ const showText = document.getElementById('showEmail'); showText.setAttribute('value',email); - // Mostra o modal após 1.5 segundos + // Show modal after 1.5 seconds setTimeout(() => { const modal = new bootstrap.Modal(document.getElementById('emailModal')); modal.show(); @@ -990,6 +975,13 @@ window.open(url, '_blank'); } + function copyEmail() { + const emailField = document.getElementById('showEmail'); + emailField.select(); + emailField.setSelectionRange(0, 99999); + navigator.clipboard.writeText(emailField.value); + } + \ No newline at end of file diff --git a/index.html b/index.html index fb764a3..e46f379 100644 --- a/index.html +++ b/index.html @@ -34,22 +34,6 @@ - - - - - @@ -987,6 +971,13 @@ window.open(url, '_blank'); } + function copyEmail() { + const emailField = document.getElementById('showEmail'); + emailField.select(); + emailField.setSelectionRange(0, 99999); + navigator.clipboard.writeText(emailField.value); + } + \ No newline at end of file