anna.lgbt/js/index.js

17 lines
503 B
JavaScript
Raw Normal View History

2022-08-29 09:46:23 +00:00
(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));
}
2022-08-29 10:08:43 +00:00
let reveal = document.getElementById('email');
reveal.addEventListener('click', () => {
2022-08-29 09:46:23 +00:00
let email = 'si' + atob('dGVAYW4=') + 'na' + atob(y('L2kyoJIhpl5c')) + 'o';
2022-08-29 10:08:43 +00:00
2022-08-29 09:46:23 +00:00
let emailLink = document.createElement('a');
emailLink.setAttribute('href', `mailto:${email}`);
emailLink.innerText = email;
2022-08-29 10:08:43 +00:00
reveal.replaceWith(emailLink);
2022-08-29 09:46:23 +00:00
});
})();