An open API service indexing awesome lists of open source software.

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 )

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
````