1.0.1 • Published 8 years ago

hide-email v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Hide Email

this package will find all elements with the class h-email and it will replace contents of that tag with a canvas that has the email

Usage

First create an element that has a data-hea attribute containing a base64 encoded email and a class of h-email

<a href="#"><span class="email-styles h-email" data-hea="ZW1haWxAZXhhbXBsZS5jb20="></span></a>

Then use the HideEmail() function

document.addEventListener("DOMContentLoaded", function(event) {
    HideEmails();
});

An example of how it is used is in the example.html file.

1.0.1

8 years ago

1.0.0

8 years ago