Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thierrymichel/js.mailto

js script to manage mailto links
https://github.com/thierrymichel/js.mailto

Last synced: 25 days ago
JSON representation

js script to manage mailto links

Awesome Lists containing this project

README

        

# js.mailto

## A little script to manage "mailto" links

VanillaJS version of my first jQuery plugin ([jquery.mailto](https://github.com/thierrymichel/jquery.mailto)).

## Usage

Create an HTML element for email addresses and replace "@" and "." with what you want (default is [at] and [dot])...

... pass a DOM Elment or Collection to Mailto() function.

Mailto(document.querySelector(".foo"));
Mailto(document.querySelectorAll(".bar"), {at: "/chez/", dot: "{point}"});

That's it !

## Contact

If you have any questions or improvements : [[email protected]](mailto:[email protected])