AsAlertMessage is a simple, sweet, customizable, animated modal plugin used to replace the default alert / prompt / confirm dialog boxes. AsAlertMessage is independent of jquery
<link href="css/as-alert-message.min.css" rel="stylesheet">
<script src="js/as-alert-message.min.js"></script>
//or using cdn
<link href="https://cdn.isfidev.com/asalertmessage/v1.0/css/as-alert-message.min.css" rel="stylesheet">
<script src="https://cdn.isfidev.com/asalertmessage/v1.0/js/as-alert-message.min.js"></script>asAlertMsg("hey test text");asAlertMsg({
type: "success",
title: "Title message",
message: "Text message"
});asAlertMsg({
type: "success",
title: "Title message",
message: "Text message",
button: {
text: "Title Button",
bg: "success"
}
});
//for button
//default {}
//text & bg, is optionalasAlertMsg({
type: "success",
title: "Title message",
message: "Text message",
button: {
text: "Title Button",
bg: "success"
},
success: {
redirect: ["https://google.com"]
}
});asAlertMsg({
type: "success",
title: "Title message",
message: "Text message",
timer: 1000,
success: {
redirect: ["https://google.com"]
}
});
//for this timer parameter the optional
//default is 1500redirect: ["https://google.com","_blank"]