A simple javascript script to "replace" email markup with a real email. Fight spam!
I built this for a friend who was concerned about getting spam in their e-mail. So, I decided to make a script for fun to help them :)
Now, I release it into the wild!
'Na' means 'after' in Dutch. When I built this, I was soon leaving to visit The Netherlands and needed a name, so it was just inspirational.
Include na-email.js
or 'na-email.min.js
(if small things is your fancy ;]) script onto your webpage and you're ready to start!
To use this, add the CSS class na-email
to your HTML tag with the follow attributes and values:
data-email-name
: theexample
in[email protected]
data-email-domain
: thesomeworld
in[email protected]
data-email-top-level
: thecom
in[email protected]
. Don't add the first period!data-email-dont-replace
: Adding this makes the script not replace your content within the tag. Default is true.
If there is any confusion, please see index.html
for a demo :)
Cheers!