Originally created as a side project for BIT Final Project.
The Custom Modal Now Support Custom Alerts.
Instead of using native confirm alerts from JS now you can use beautifully animated custom confirm alerts
Bootstrap 5.0+
showCustomConfirm(msg,result);
To get started, include bootstrap css, bootstrap js and custom Modal files in your webpage
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
<script src="customModal_V2/resources/js/customModal@2.0.min.js" type="text/javascript"></script>
Then call showCustomConfirm() to whatever you want to trigger it
<script>
showCustomConfirm("Hello",function (result){});
</script>
| Example | Explanation |
|---|---|
msg |
Insert your message here |
result |
catch the result of the user confirmation (callback function) |
![]() |
|
Made with ❤️ - Malindu Prabodhitha