blurt
blurt copied to clipboard
A javascript default alert() and prompt() replacement.
trafficstars
Checkout a similar project medium-style-confirm having a cleaner interface.
Blurt
A javascript default alert() and prompt() replacement.
Inspired by sweetAlert but custom implementation.
Visit blurt project site

Installation
-
Just download the latest zip of blurt.
-
Or install using
bower install blurt. -
And link the
blurt.min.cssandblurt.min.jsfiles in your webpage.link rel="stylesheet" href="blurt.min.css"> script src="blurt.min.js"></script> -
After page load, show the
blurtusing:blurt('Your message here.')

-
To use
prompt()equivalent, do this:rompt('Prompt title', function(val){ //use the val here );
Development
- Clone the project
git clone https://github.com/brijeshb42/blurt.git. - Then
cdinto blurt directory. npm installinstalls the node modules required during development.- Runnig
gruntcommand initialises dev files and watches for changes made to blurt.js and scss files. - Make your changes to
src/js/blurt.jsorsass/*.scss. - After making changes,
grunt distcreates the final minified css and js files in dist directory. - Use the generated blurt.min.js and blurt.min.css in your web page to use blurt .
Issues
Report issues here.
Bugs-to-fix
- Uses css animations which may not be supported in old browsers.
Todo
- Implement icons for each of the blurt types, i.e, success, info, error and warning.
- Implement fadeIn and fadeOut to support older browsers which do not support css animation.
License
MIT License