hidemyemail
Version:
A jQuery plugin that helps you to hide your email on your page and prevent crawlers to get it!
54 lines (39 loc) • 1.91 kB
HTML
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<h1 id="hidemyemail">hideMyEmail</h1>
<blockquote>
<p>A jQuery plugin that helps you to hide your email on your page and prevent crawlers to get it!</p>
</blockquote>
<h2 id="gettingstarted">Getting Started</h2>
<p>Download the <a href="https://raw.githubusercontent.com/frenchfreelance/hideMyEmail/master/js/jquery.hideMyEmail.min.js">production version</a> or the <a href="https://raw.githubusercontent.com/frenchfreelance/hideMyEmail/master/js/jquery.hideMyEmail.js.js">development version</a>.</p>
<p>In the bottom of your web page, before the <code>html</body></code>:</p>
<pre><code class="html"><script src="js/jquery.min.js"></script>
<script src="js/jquery.hideMyEmail.min.js"></script>
<script>
$(document).ready(function(){
$('a.mail').hideMyEmail();
});
</script>
</code></pre>
<h2 id="thelink">The link</h2>
<pre><code class="html"><a class="mail" href="#whatever" data-u="johndoe" data-d="domain" data-e="com" data-s="subject" data-b="body">Contact me!</a>
</code></pre>
<h2 id="options">Options</h2>
<pre><code>+ 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.
</code></pre>
<h2 id="demoanddoc">Demo and doc</h2>
<p><a href="http://www.alexandre-vasseur.fr/hideMyEmail/">Live demo and doc</a></p>
<h2 id="license">License</h2>
<p>Copyright © A. Vasseur, 2015<br />
Licence : Free to use and modify, just mention my name and a link to the demo please and I’ll be happy.</p>
</body>
</html>