Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
🐞 bugfix with new hide/show details and new index.detailshidden.html #90
Browse files Browse the repository at this point in the history
  • Loading branch information
manzinello committed Dec 2, 2020
1 parent 0e4df05 commit dd59a63
Show file tree
Hide file tree
Showing 13 changed files with 198 additions and 60 deletions.
2 changes: 1 addition & 1 deletion dist/mailgo.dark.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.dark.min.js.map

Large diffs are not rendered by default.

57 changes: 33 additions & 24 deletions dist/mailgo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mailgo.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.nocss.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.nocss.min.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ Simple example of mailgo with a test of desktop/mobile settings
### `index.skypack.html`

Simple example of mailgo using <https://www.skypack.dev/view/mailgo>

### `index.office365.html`

Simple example of mailgo that uses Office365 instead the classic Outlook Live for Outlook link

### `index.detailshidden.html`

Simple example of mailgo with subject and body of the email hidden
107 changes: 107 additions & 0 deletions examples/index.detailshidden.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mailgo examples with Office365 setting enabled</title>
</head>
<body>
<h1>mailto</h1>
<p><a href="mailto:[email protected]">[email protected]</a></p>
<p>
<a href="mailto:[email protected]"
><span>[email protected] (with subelement of a tag)</span></a
>
</p>
<p>
<a href="mailto:[email protected][email protected]"
>mailto with more "to" and a "cc"</a
>
</p>
<p>
<a href="mailto:[email protected],[email protected]?cc=test"
>mailto with more "to" and a "cc" not valid</a
>
</p>
<p>
<a href="mailto:[email protected]?subject=ciao"
>example with a subject</a
>
</p>
<p>
<a href="mailto:[email protected]?subject=ciao&body=ciaociao"
>example with a subject and a body</a
>
</p>
<p>
<a
href="mailto:[email protected][email protected]&subject=ciao&body=ciaociao"
>example with a cc, a subject and a body</a
>
</p>
<p>
<a
href="mailto:[email protected][email protected]&[email protected]&subject=ciao&body=ciaociao"
>example with a cc, a bcc, a subject and a body</a
>
</p>
<p>
<a
href=""
class="mailgo"
data-address="matteo"
data-domain="manzinello.dev"
>less-spam example (with class=mailgo)</a
>
</p>
<p>
<a href="#mailgo" data-address="matteo" data-domain="manzinello.dev"
>less-spam example (with href=#mailgo)</a
>
</p>
<h2>Dark mode</h2>
<p>
<a class="dark" href="mailto:[email protected]"
>[email protected] (single dark mode, class=dark)</a
>
</p>
<p>
<a
class="dark"
href="mailto:[email protected][email protected]"
>mailto with a cc and single dark mode
</a>
</p>
<p>
<a
class="dark"
href="mailto:[email protected][email protected]&[email protected]&subject=ciao&body=ciaociao"
>example with a cc, a bcc, a subject and a body and single dark mode</a
>
</p>
<p>
<a
href=""
class="mailgo dark"
data-address="matteo"
data-domain="manzinello.dev"
>less-spam dark mode example (with class=mailgo)</a
>
</p>

<br />
<br />
<p><a href="https://mailgo.dev">mailgo.dev</a></p>

<script>
window.mailgoConfig = {
details: {
subject: false,
body: false,
},
};
</script>

<script src="../dist/mailgo.min.js"></script>
</body>
</html>
57 changes: 33 additions & 24 deletions lib/mailgo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/mailgo.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit dd59a63

Please sign in to comment.