diff --git a/README.md b/README.md index 862fac1..5c0eadf 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,15 @@ -# 💌 mailgo - a different mailto +# 💌 mailgo - a different mailto (WIP) ![mailgo screencast](/assets/video/mailgo-v.0.1.2-screencast.gif) (see it in action! ) -mailgo is WIP +## what? -add the mailgo script in a web page to substitute all the `mailgo:` links with the **mailgo modal** +mailgo will substitute all the `mailto:` links with the **mailgo modal** mailgo modal -to exclude a mailto link add to the `` element the class `no-mailgo` like in this example: - -``` -matteo@manzinello.dev -``` - -## script (development) - -``` - -``` - -## script +## installation ``` @@ -41,6 +29,14 @@ or specifying `[VERSION]` +### exclude a mailto + +to exclude a mailto link add to the `` element the class `no-mailgo` like in this example: + +``` +matteo@manzinello.dev +``` + ## docs diff --git a/src/mailgo.js b/src/mailgo.js index fd3bce4..ff01932 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -91,7 +91,7 @@ function mailgoInit() { // ottengo tutti i mailto contenuti nella pagina const mailgos = document.querySelectorAll( - 'a[href^="mailto:"]:not(.no-mailgo), a.mailgo' + 'a[href^="mailto:"]:not(.no-mailgo), a.mailgo:not(.no-mailgo)' ); // attivo mailgo su tutti gli elementi