7,2%
$129,920
Last Month
0,6%
$14,293
Today
0,8%
$190,250
Last Week
3,2%
$10,250
Last Hour
Fast21 80%
Eco Newmars 70%
Best Niket 60%
Real Five 40%

Sweet Alert

Basic Message

swal("Here's a message!", "It's pretty, isn't it?");

Contextual Classes

// Success Modal
swal("Good job!", "You clicked the button!", "success");

// Error Modal
swal("Oops...", "Something went wrong!", "error");

Confirm Action

swal({
  title: "Are you sure?",
  text: "You will not be able to recover this imaginary file!",
  type: "warning",
  showCancelButton: true,
  confirmButtonColor: '#DD6B55',
  confirmButtonText: 'Yes, delete it!',
  cancelButtonText: "No, cancel plx!",
  closeOnConfirm: false,
  closeOnCancel: false
},
  function(isConfirm){
    if (isConfirm){
      swal("Deleted!", "Your imaginary file has been deleted!", "success");
    } else {
      swal("Cancelled", "Your imaginary file is safe :)", "error");
    }
});

HTML Content

swal({
  title: "HTML Title!",
  text: 'A custom message.',
  html: true
});

Auto Close Timer

swal({
  title: "Auto close alert!",
  text: "I will close in 2 seconds.",
  timer: 2000,
  showConfirmButton: true,
  animation: 'slide-from-top'
});

Prompt Replacement

swal({
  title: "An input!",
  text: 'Write something interesting:',
  type: 'input',
  showCancelButton: true,
  closeOnConfirm: false,
  animation: "slide-from-top",
  inputPlaceholder: "Write something",
  animation: 'slide-from-bottom'
},
function(inputValue){
  if (inputValue === false) return false;
  if (inputValue === "") {
  swal.showInputError("You need to write something!");
  return false;
}   
  swal("Nice!", 'You wrote: ' + inputValue, "success");
});

With Loader (for AJAX request for example)

swal({
  title: 'Ajax request example',
  text: 'Submit to run ajax request',
  type: 'info',
  showCancelButton: true,
  closeOnConfirm: false,
  showLoaderOnConfirm: true,
}, function(){
  setTimeout(function() {
    swal('Ajax request finished!');
  }, 2000);
});