https://github.com/dperrymorrow/obfuscate.js
hide email addresses and display them with js, ( no serverside code required )
https://github.com/dperrymorrow/obfuscate.js
Last synced: about 1 year ago
JSON representation
hide email addresses and display them with js, ( no serverside code required )
- Host: GitHub
- URL: https://github.com/dperrymorrow/obfuscate.js
- Owner: dperrymorrow
- Created: 2012-04-03T17:15:19.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-04T00:09:51.000Z (about 14 years ago)
- Last Synced: 2025-01-22T01:42:49.207Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Obfuscate.js jquery plugin
Hide your email address from bots.
## Usage
- include obfuscate.js after jquery in your head or wherever you like
- write your email address on the page like gmail.com/dperrymorrow instead of dperrymorrow@gmail.com
- showEmail() will format back to mailto link with javascript avoiding bots, but not annoying your users
### Standard
````html
david morrow
david morrow
````
````javascript
$('.show').revealEmail()
````
#### Results in
````html
david morrow
````
### Format the label as well
sometimes you might want to display the email address as the label as well. You can by passing in an additional
````html
gmail.com/dperrymorrow
gmail.com/dperrymorrow
````
````javascript
$('.show').revealEmail(true)
````
#### Results in
````html
dperrymorrow@gmail.com
````