Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thierrymichel/js.mailto
- Owner: thierrymichel
- Created: 2013-09-04T09:00:52.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-04T09:04:13.000Z (about 11 years ago)
- Last Synced: 2023-07-01T10:39:46.163Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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])...
john.doe[at]domain[dot]com
john.doe/foo/domain{bar}com... 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])