inizio di modifiche README, not anche a mailgo senza mailto
This commit is contained in:
parent
69bc1f2155
commit
c29446663f
28
README.md
28
README.md
@ -1,27 +1,15 @@
|
||||
# 💌 mailgo - a different mailto
|
||||
# 💌 mailgo - a different mailto (WIP)
|
||||
|
||||

|
||||
(see it in action! <https://mailgo.js.org>)
|
||||
|
||||
<u>mailgo is WIP</u>
|
||||
## 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**
|
||||
|
||||
<img src="assets/img/screen-1.png" alt="mailgo modal" width="200"/>
|
||||
|
||||
to exclude a mailto link add to the `<a>` element the class `no-mailgo` like in this example:
|
||||
|
||||
```
|
||||
<a class="no-mailgo" href="mailto:matteo@manzinello.dev">matteo@manzinello.dev</a>
|
||||
```
|
||||
|
||||
## script (development)
|
||||
|
||||
```
|
||||
<script src="https://cdn.jsdelivr.net/gh/manzinello/mailgo@latest/dist/mailgo.min.js"></script>
|
||||
```
|
||||
|
||||
## script
|
||||
## installation
|
||||
|
||||
```
|
||||
<script src="https://cdn.jsdelivr.net/npm/mailgo/dist/mailgo.min.js"></script>
|
||||
@ -41,6 +29,14 @@ or
|
||||
|
||||
specifying `[VERSION]`
|
||||
|
||||
### exclude a mailto
|
||||
|
||||
to exclude a mailto link add to the `<a>` element the class `no-mailgo` like in this example:
|
||||
|
||||
```
|
||||
<a class="no-mailgo" href="mailto:matteo@manzinello.dev">matteo@manzinello.dev</a>
|
||||
```
|
||||
|
||||
## docs
|
||||
|
||||
<https://mailgo.js.org>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user