Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

hidemyemail

0.1.0 • Public • Published

hideMyEmail

A jQuery plugin that helps you to hide your email on your page and prevent crawlers to get it!

Getting Started

Download the production version or the development version.

In the bottom of your web page, before the html</body>:

<script src="js/jquery.min.js"></script>
<script src="js/jquery.hideMyEmail.min.js"></script>
<script>
    $(document).ready(function(){
     $('a.mail').hideMyEmail();
    });
</script> 

The link

<a class="mail" href="#whatever" data-u="johndoe" data-d="domain" data-e="com" data-s="subject" data-b="body">Contact me!</a>

Options

+ data-u : username before the @
+ data-d : domain name without extension
+ data-e : extension without dot (.)
+ data-s (optional) : subject of the email
+ data-b (optional) : body of the email
+ One last thing, if you don't put anything between the <a><a>, your email is printed by default. 

Demo and doc

Live demo and doc

License

Copyright © A. Vasseur, 2015
Licence : Free to use and modify, just mention my name and a link to the demo please and I'll be happy.

Install

npm i hidemyemail

DownloadsWeekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • avatar