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.net/asalertmessage/v1.0/css/as-alert-message.min.css" rel="stylesheet">
<script src="https://cdn.isfidev.net/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 optional
asAlertMsg({
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 1500
redirect: ["https://google.com","_blank"]
Author: ahmadsopyan9
Demo: https://plugin.isfidev.net/asalertmessage/demo.html
Source Code: https://github.com/ahmadsopyan9/as-alert-message
#javascript