UNPKG

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
<!DOCTYPE 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&lt;/body&gt;</code>:</p> <pre><code class="html">&lt;script src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;js/jquery.hideMyEmail.min.js&quot;&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function(){ $('a.mail').hideMyEmail(); }); &lt;/script&gt; </code></pre> <h2 id="thelink">The link</h2> <pre><code class="html">&lt;a class=&quot;mail&quot; href=&quot;#whatever&quot; data-u=&quot;johndoe&quot; data-d=&quot;domain&quot; data-e=&quot;com&quot; data-s=&quot;subject&quot; data-b=&quot;body&quot;&gt;Contact me!&lt;/a&gt; </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 &lt;a&gt;&lt;a&gt;, 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&#8217;ll be happy.</p> </body> </html>