Bootstrap based js alert
npm install @rohit-chouhan/bootalertA complete pure Bootstrap based alert for Javascript.
!PHP
#### CDN
bootalert.min.js
``sh`
https://unpkg.com/@rohit-chouhan/bootalert/bootalert.min.js
bootalert.js
`sh`
https://unpkg.com/@rohit-chouhan/bootalert/bootalert.jswith NPM`sh`
$ npm install @rohit-chouhan/bootalert$3
Method | Use
--------------------------------------|----------------------------------------
bootalert('Hello World') | Header Text in Alert
bootalert('Hello World','I am Bootalert') | Header, Message in Alert
bootalert('Hello World','I am Bootalert','primary') | Header Text, Message, button theme in Alert
bootalert('Hello World','I am Bootalert','primary','Ok') | Header Text, Message, button theme, Button Name in Alert
bootprompt('Enter Name','primary','Get Name') | Get InputHeader Text, button theme, Button Name in Alert
javascript
function bootrun(){
console.log(window.bootval);
}//complete example
bootprompt('Enter Email');
function bootrun(){
console.log('Your Email is '+ window.bootval);
}
``