Christian 2f9bf8e24a [TASK] Kontaktmöglichkeiten hinzugefügt
- Emailadresse per js und css versteckt
2020-04-10 17:53:24 +02:00

13 lines
469 B
JavaScript

document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.parallax');
var parallaxes = M.Parallax.init(elems, {});
var mailcypts = document.querySelectorAll(".cryptmail");
mailcypts.forEach(element => {
element.onclick = function () {
window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld;
return false;
}
});
});