13 lines
469 B
JavaScript
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;
|
|
}
|
|
});
|
|
}); |