https://github.com/zxqx/toasty
Make the Mortal Kombat toasty guy pop out on your site.
https://github.com/zxqx/toasty
easter-egg javascript
Last synced: 11 months ago
JSON representation
Make the Mortal Kombat toasty guy pop out on your site.
- Host: GitHub
- URL: https://github.com/zxqx/toasty
- Owner: zxqx
- Created: 2013-02-12T06:42:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T15:42:35.000Z (almost 10 years ago)
- Last Synced: 2025-08-09T10:58:12.241Z (11 months ago)
- Topics: easter-egg, javascript
- Language: JavaScript
- Homepage:
- Size: 207 KB
- Stars: 27
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# toasty
Make the Mortal Kombat toasty guy pop out on your site.
[](https://circleci.com/gh/zakangelle/toasty/tree/master) [](https://coveralls.io/github/zakangelle/toasty?branch=master) [](https://dl.dropboxusercontent.com/u/21334841/demos/toasty/index.html)
## Installation
```sh
$ npm install toasty
```
## Usage
Show toasty guy when a certain element is clicked:
**JS**:
```js
import toasty from 'toasty';
toasty('.toasty');
```
**HTML**:
```html
Click me!
```
or just trigger it directly:
```js
import toasty from 'toasty';
let t = toasty();
t.trigger();
```
## Example
Generate an example in `example/dist`:
```sh
$ npm run example
```
## Standalone
Generate a standalone build in `dist` (for use with `` tags and AMD module loaders):
```sh
$ npm run build:standalone
```
## Test
Run tests with [karma](https://karma-runner.github.io) and [mocha](https://mochajs.org/):
```
$ npm test
```
## License
MIT