From b66eebdd1df885fb534bc644ed3668d056285f6e Mon Sep 17 00:00:00 2001 From: Curry141 <135717077+Daniongithub@users.noreply.github.com> Date: Thu, 2 Oct 2025 16:44:53 +0200 Subject: [PATCH] New email address. --- index.html | 2 +- scripts/ertpl.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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