Smoke.js – Javascript Library for Making Alert Boxes

Smoke.js – Javascript Library for Making Alert Boxes

Welcome folks today in this post I will be sharing a new library of Javascript. With the help of this library you can make awesome alert boxes. The name of the library is Smoke.js.

READ  Simple jQuery Plugin for Displaying Twitter Feed - Tweetie

 

Download Zip 

 

.alert()

 

 

 

smoke.alert("Can I ask you a question?", function(e){
	
}, {
	ok: "Yep",
	cancel: "Nope",
	classname: "custom-class"
});

 

 

.confirm()

 

 

 

 

smoke.confirm("Are you sure?", function(e){
	if (e){

	}else{

	}
}, {
	ok: "Yep",
	cancel: "Nope",
	classname: "custom-class",
	reverseButtons: true
});

 

READ  AJAX JQUERY AND PHP REGISTRATION FORM

 

.prompt()

 

 

 

 

smoke.prompt("What's for dinner?", function(e){
	if (e){

	}else{
	
	}
}, {
	ok: "Yes",
	cancel: "No",
	classname: "custom-class",
	reverseButtons: true,
	value: "existential dread"
});

 

 

.quiz()

 

 

 

 

 

smoke.quiz("Which is your favorite?", function(e){
	if (e == "A"){

	}
}, {
	button_1: "A",
	button_2: "B",
	button_3: "C",
	button_4: "D",
	button_cancel: "Nothing"
});

 

READ  How to Upload Files to Google Drive using Google Drive API V3

 

.signal()

 

 

 

 

 

smoke.signal("Congratulations! You have just one a free iPod Touch!", function(e){

}, {
	duration: 3000,
	classname: "custom-class"
});

Leave a Reply