19 lines
723 B
JavaScript
19 lines
723 B
JavaScript
(function() {
|
|
function y(s) {
|
|
return s.replace(/[a-zA-Z]/g,(c)=>String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26));
|
|
}
|
|
|
|
document.getElementById('email-button').addEventListener('click', () => {
|
|
let email = 'si' + atob('dGVAYW4=') + 'na' + atob(y('L2kyoJIhpl5c')) + 'o';
|
|
let emailLink = document.createElement('a');
|
|
emailLink.setAttribute('href', `mailto:${email}`);
|
|
emailLink.innerText = email;
|
|
document.getElementById('email-text').replaceWith(emailLink);
|
|
document.getElementById('modal').setAttribute('open', '');
|
|
});
|
|
|
|
document.getElementById('email-close').addEventListener('click', () => {
|
|
document.getElementById('modal').removeAttribute('open');
|
|
});
|
|
})();
|