This repository has been archived on 2025-03-17. You can view files and clone it, but cannot push or open issues or pull requests.
website/static/js/emaildecode.js
Rupus Reinefjord a528892ac8 initial commit
2018-01-11 23:54:26 +01:00

8 lines
240 B
JavaScript

var emails = document.getElementsByClassName("email");
for (var i = 0; i < emails.length; i++) {
var b64 = emails[i].innerHTML;
var decoded = window.atob(b64);
emails[i].innerHTML = decoded;
emails[i].href = "mailto:" + decoded;
}