jcadima
3/31/2017 - 4:50 PM

sweet Alert for Bootstrap

sweet Alert for Bootstrap


the CSS:
https://raw.githubusercontent.com/lipis/bootstrap-sweetalert/master/dist/sweetalert.css

the JS:
https://raw.githubusercontent.com/lipis/bootstrap-sweetalert/master/dist/sweetalert.min.js

1) save these into their respective files

2) put on the header:

<link href="css/customalert.css" rel="stylesheet" type="text/css"/>
<script src="js/customalert.js"></script>


3) USE: https://lipis.github.io/bootstrap-sweetalert/

swal("Here's a message!")

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

message with warning icon, note second parameter is black, or it just becomes a 
second line of text
swal("Enter your first name", "" , "warning") ;