mailymaily/README.md

52 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# ODIT.Services - MailyMaily
A better mailto based on [mailtoui](https://github.com/mariordev/mailtoui).
## 🛠 Building
```bash
yarn && yarn build
```
## Use
[Example](index.html)
### Install
Via yarn/npm:
```bash
yarn add @odit/mailymaily
# Or
npm i @odit/mailymaily
```
Or just copy the file `dist/mailymaily.js` to your prefered folder.
### Link
2020-08-29 16:42:14 +00:00
Basic: Link the dist file `mailymaily.min.js` at the bottom of your footer.
```html
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js"></script>
```
Alternatively: Add defer or async=false when linking in the header
```html
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" defer></script>
<!-- or -->
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" async=false></script>
```
### VueJS & NuxtJs
2020-08-29 16:42:14 +00:00
Place the dist file "mailymaily.min.js" in the static folder.
Link the dist file at the bottom of your layout, for example:
```html
<template>
<div>
<Header />
<Nuxt />
<Footer />
2020-08-29 16:42:14 +00:00
<script src="/libs/mailymaily.min.js"></script>
</div>
</template>
```