https://github.com/viniciusgerevini/toastyalert
Just a joke inspired by Mortal Kombat Toasty! easter egg.
https://github.com/viniciusgerevini/toastyalert
Last synced: 3 months ago
JSON representation
Just a joke inspired by Mortal Kombat Toasty! easter egg.
- Host: GitHub
- URL: https://github.com/viniciusgerevini/toastyalert
- Owner: viniciusgerevini
- Created: 2015-03-25T03:50:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T04:29:37.000Z (about 10 years ago)
- Last Synced: 2025-02-03T16:47:37.053Z (5 months ago)
- Language: JavaScript
- Homepage: http://viniciusgerevini.github.io/ToastyAlert/
- Size: 211 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Toasty! Alert
=====================Just a joke that can be used in easter eggs.
>"Toasty!" is an Easter egg that first featured in Mortal Kombat II.
>It originated as an inside joke between members of the Mortal Kombat development team, and made its way into the game via an image of sound designer Dan Forden appearing in the lower-right corner of the screen, and saying "Toasty!" in a falsetto voice, when the player performed a particularly vicious uppercut.## How to use
* Import `toasty-alert.min.css` and `ToastyAlert.min.js`
* create a `./sound` folder in your website directory and copy `toasty.mp3` to it.
* In your page put:
```javascript(function() {
ToastyAlert.initialize();
})();```
* You can trigger the Toasty! alert executing `ToastyAlert.run()`. eg:```html
Toasty!
```## Options
```javascript
ToastyAlert.initialize({
toastyDuration: 800, //Time before Toasty! image disappears
soundFilePath: './sound/toasty.mp3', // Toasty! sound file path
noSound: false, // Disable Toasty! sound
showImage: true // Enable/disable Toasty! image
});```
##More
Web Components
* native (To do)
* Polymer (To do)
* X-Tag (To do)