diff --git a/index.html b/index.html
index e79c379..fde857f 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@
Novità sito:
- Ridimensionate novità aziende per schermi piccoli
+ ATTENZIONE! Abbiamo cambiato provider email, clicca su "Contattaci" nel footer qui sotto o in chi siamo
per vedere il nuovo indirizzo.
diff --git a/scripts/ertpl.js b/scripts/ertpl.js
index 572948a..ab94cf6 100644
--- a/scripts/ertpl.js
+++ b/scripts/ertpl.js
@@ -53,14 +53,18 @@ function chisiamoInizializza() {
setInterval(updateTimer, 1000);
}
+// This function below is just a simple obfuscator for the email address, in order to prevent bots invading the inbox.
+
function mostraemail() {
document.getElementById("email").innerHTML = "";
const p1 = "info";
const p2 = ".";
const p3 = "ertpl";
const p4 = "@";
- const p5 = "gmail";
+ const p5 = "protonmail";
const p6 = ".";
const p7 = "com";
- document.getElementById("email").innerHTML = p1+p2+p3+p4+p5+p6+p7;
+ const link = document.getElementById("email").appendChild(document.createElement("a"));
+ link.innerHTML = p1+p2+p3+p4+p5+p6+p7;
+ link.setAttribute("href", "mailto:" + p1+p2+p3+p4+p5+p6+p7);
}
\ No newline at end of file