Skip to content

Latest commit

 

History

History
85 lines (59 loc) · 1.84 KB

README.md

File metadata and controls

85 lines (59 loc) · 1.84 KB

webToast

A jQuery plugin for alerting user and loading box.

You can easily push Danger, Info & Success alert to user and you can show loading box when need load data from API.

Check Details Demo Here

#Use for ConfirmBox...

$("#conf").click(function(){

  var confirmBox= webToast.confirm({message:'Are You Sure ?', align:'topcenter'});
  //var confirmBox= webToast.confirm('Are You Sure ?');

  confirmBox.click(function(){
    alert('confirmed');
 
  }) 

})

#Use for Loading...

var Loading= webToast.loading({
                 status:'Loading...',
                 message:'Please Wait..',
		 align:'topcenter'
                 });
   

setTimeout(function(){ 
  
 Loading.remove() ;
 
}, 3000);

#Use for Alert...

 webToast.Success({
                 status:'Wow !',
                 message:'You are success',
		 align:'topcenter'
                   /* Default delay time 3 second */
                 })
      webToast.Info({
                 status:'Hello !',
                 message:'I always try to learn',
	         align:'bottomcenter'
                 delay:false  /* Never hide autometically */
                 })
                 
     webToast.Danger({
                 status:'Sorry !',
		 align:'topleft'
                 message:'I have failed to complete',
                 delay:5000 /* 5 second will stay */
                 })

#Features

  • Confirmation Dialog
  • Loading Alert
  • Info Alert
  • Success Alert
  • Danger Alert
  • Custom Delay Time as Millisecond. also have default delay time for alert -3/3000 second

#License

The MIT License (MIT)

Author: AL EMRAN