Skip to content

diegomengarda/toasty-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Toasty Plugin ##A jQuery plugin to show easter egg like Mortal Kombat Toasty

###Author Diego Mengarda / @diegomengarda

###License MIT - http://opensource.org/licenses/MIT

##Install

###Include files

<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="js/toasty.min.js"></script>
<link href="css/toasty.min.css" rel="stylesheet" />

###Show typing text

<script>
$(function(){
	$('body').toasty({
		event: 'type',
		typeWord: 'hello'
	});
});
</script>

###Show with click in some button

<script>
$(function(){
	$('button').click(function(){
		$('body').toasty('show');
	});
});
</script>

<button>Show now</button>

##Settings

sound File to play when toasty is call

default: 'assets/toasty.mp3'
options: String 

image Image to show when toasty is call

default: 'assets/toasty.png'
options: String 

event Event to fire toasty

default: 'default'
options: String ('default', 'type')

typeWord Word to fire toasty when propriety event is type

default: ''
options: String

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published