Oh Snap!

Please turnoff your ad blocking mode for viewing your site content

Hit enter after type your search item

Smoke.js – Javascript Library for Making Alert Boxes

/
/
/
27 Views

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  Node.js Passport Google Authentication Using Express Full Project

 

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  How to Extract Youtube Video Id From Youtube URL in Javascript

 

.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  Generating PDF with jsPDF & Autotable

 

.signal()

 

 

 

 

 

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

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

Leave a Comment

Your email address will not be published. Required fields are marked *

This div height required for enabling the sticky sidebar
Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views :