Updated Form with E-Mail and JS-obfuscation

This commit is contained in:
spetznas
2026-05-17 08:39:09 +02:00
parent 1cb22384fd
commit 69a5cc6ee0
29 changed files with 1703 additions and 74 deletions
+17
View File
@@ -0,0 +1,17 @@
{{ $email := . }}
<span class="email"><b>{{ i18n "javascript" }}</b></span>
<script>
(function() {
var email = "{{ $email }}";
var user = email.split('@')[0];
var domain = email.split('@')[1];
var link = document.createElement('a');
link.href = 'mailto:' + user + '@' + domain;
link.textContent = user + '@' + domain;
// Replace the placeholder text with the actual link
var span = document.currentScript.previousElementSibling;
span.textContent = ""; // clear the fallback text
span.appendChild(link);
})();
</script>