diff options
| author | Jieiku | 2023-05-22 23:24:44 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:24:44 -0700 |
| commit | 3af6d9131f6dfc138856d718ec96626344095ec8 (patch) | |
| tree | 1a8d75cf494d5333da2cb02506e04c9e0f576f6d /static/email.js | |
| parent | 3ca36cc469e838cee7d3fdcdc6ff39b35313a293 (diff) | |
| download | abridge-3af6d9131f6dfc138856d718ec96626344095ec8.tar.gz abridge-3af6d9131f6dfc138856d718ec96626344095ec8.tar.bz2 abridge-3af6d9131f6dfc138856d718ec96626344095ec8.zip | |
Optimizations and Fixes
Diffstat (limited to 'static/email.js')
| -rw-r--r-- | static/email.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/static/email.js b/static/email.js deleted file mode 100644 index 01e338a..0000000 --- a/static/email.js +++ /dev/null @@ -1,16 +0,0 @@ -(function() { - // Find all the elements on the page that use class="m-protected" - var allElements = document.getElementsByClassName('m-protected'); - - // Loop through all the elements, and update them - for (var i = 0; i < allElements.length; i++) { - // fetch the hex-encoded string from the href property - var encoded = allElements[i].getAttribute('href'); - - // decode the email address - var decoded = atob(encoded.substring(1)); - - // Set the link to be a "mailto:" link - allElements[i].href = 'mailto:' + decoded; - } -})(); |
