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  Authenticate your users in Node with Passport.js

 

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  Redis Caching in Node.js

 

.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  jQuery NiceForm - Form Validation & AJAX Submit Plugin

 

.signal()

 

 

 

 

 

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

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

Leave a Reply