jQuery plugin to protect email addresses from crawlers and bots. Spam protector on your web pages.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
presentation
test
.gitignore
README.md
index.html
package.json

README.md

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.