usablica / progress.js

ProgressJs is a JavaScript and CSS3 library which help developers to create and manage progress bar for every objects on the page.
http://usablica.github.io/progress.js/
MIT License
2.37k stars 246 forks source link

Added decrease() and autoDecrease() #17

Closed wanecek closed 6 years ago

wanecek commented 9 years ago

The functions _autoDecrease and _decreasePercent were added, as well as 'bound' to progressJs.decrease() and progressJs.autoDecrease().

These functions can, for example, be used to decrease the progressbar when going back in a slideshow, where the progressbar indicated progress of presentation.

(I apologise for automatic trimming of whitespace, and sincerely hope it doesn't pose any trouble. )

wanecek commented 9 years ago

If necessary, I can redo the changes with javascript whitespace trimming turned off.