hide-email

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i hide-email

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • jwele