Package Exports
- toasty
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (toasty) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
toasty
Make the Mortal Kombat toasty guy pop out on your site.
Installation
$ npm install toastyUsage
Show toasty guy when a certain element is clicked:
JS:
import toasty from 'toasty';
toasty('.toasty');HTML:
<button class="toasty">Click me!</button>or just trigger it directly:
import toasty from 'toasty';
let t = toasty();
t.trigger();Example
Generate an example in example/dist:
$ npm run exampleStandalone
Generate a standalone build in dist (for use with <script> tags and AMD module loaders):
$ npm run build:standaloneTest
Run tests with karma and mocha:
$ npm testLicense
MIT