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  Firebase Authentication in Github using Javascript - Coding Shiksha

 

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  Make a Fully Responsive Website in Materialize CSS with Source Code in 2019

 

.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 get Full Path of Uploaded Image in Electron Application

 

.signal()

 

 

 

 

 

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

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

Leave a Reply

Close Menu

Indian Desi Tools - Ultimate Tools Website

Demo Description


This will close in 20 seconds