dbar
v1.0.10
Published
destiny-inspired progress bar
Downloads
2
Readme
dbar
A progress bar inspired by playing too much Destiny.
You can see the demo and examples here at http://dbar.256.codes
Example Usage
- Initiaate the progress bar
dbar.i()
- Set the progress bar to 25%
dbar.perc(0.25)
- Complete and remove the progress bar
dbar.d()
Installation
If you are using npm, you can
$ npm install dbar
Add/merge the following files to your project
Example (gulp)
gulp.task('vendor', function() {
gulp.src(['node_modules/dbar/dist/dbar.js'])
.pipe(concat('vendor.js')).pipe(gulp.dest('public/js/'));
gulp.src(['node_modules/dbar/dbar.css'])
.pipe(concat('vendor.css')).pipe(gulp.dest('public/css/'));
gulp.src(['node_modules/dbar/dbar.html'])
.pipe(concat('vendor.html')).pipe(gulp.dest('public/html/'));
});