Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Bump version 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
minddust committed Aug 1, 2014
1 parent 2a78795 commit 54767be
Show file tree
Hide file tree
Showing 97 changed files with 2,335 additions and 110 deletions.
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.8.0 (2014-07-31)

* Add bootstrap 3.2.0 styles
* Extend `amount_format` hook for min value
* Update demo page
* Remove unused travis badge
* Fix #27 switch `aria-valuetransitionsgoal` to `data-transitionsgoal`

### 0.7.1 (2014-03-05)

* Add bootstrap 3.1.1 styles
Expand Down
3 changes: 2 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ var paths = {
'./resources/bootstrap-progressbar-3.0.2.less',
'./resources/bootstrap-progressbar-3.0.3.less',
'./resources/bootstrap-progressbar-3.1.0.less',
'./resources/bootstrap-progressbar-3.1.1.less'
'./resources/bootstrap-progressbar-3.1.1.less',
'./resources/bootstrap-progressbar-3.2.0.less',
]
};

Expand Down
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# bootstrap-progressbar - 0.7.1 [![Build Status](https://secure.travis-ci.org/minddust/bootstrap-progressbar.png)](http://travis-ci.org/minddust/bootstrap-progressbar)
# bootstrap-progressbar - 0.8.0

`bootstrap-progressbar` is a [jQuery](http://jquery.com) plugin which extends the basic [twitter-bootstrap](https://github.com/twbs/bootstrap) progressbar. It provides the ability to animate the progressbar by adding Javascript in combination with the preexisting css transitions. Additionally you can display the current progress information in the bar or get the value via callback.


## What's new in v0.7.1?
## What's new in v0.8.0?

* Add bootstrap 3.1.1 styles
* Switch to Gulp
* Remove bs dotfiles
* Fix #30 compile errors with old markup
* Fix #29 wrong style generation
* Fix #28 element creation which will brick with `django-compressor`
* Add bootstrap 3.2.0 styles
* Extend `amount_format` hook for min value
* Update demo page
* Remove unused travis badge
* Fix #27 switch `aria-valuetransitionsgoal` to `data-transitionsgoal`

> Note: this version sets (fixes) some vertical styles which may affect (or brick) your styles. Please checkout the css or less before updating.
> __Note__: this version replaces the not official supported `aria-valuetransitionsgoal` with `data-transitionsgoal` which may affect (or brick) your progressbars.
> __Note__: Bootstrap's [low percentage styles](http://getbootstrap.com/components/#progress-low-percentages) (introduced in 3.2.0) causes flickring under some circumstances (e.g. slow transitions). I'm currently working on 0.8.1 to fix that.
> __Note__: Stacked progressbars are not supported by now.

## Demo

* http://minddust.github.com/bootstrap-progressbar
* http://www.minddust.com/project/bootstrap-progressbar/demo/


## Installation

* Download the latest release: [v0.7.1](https://github.com/minddust/bootstrap-progressbar/archive/v0.7.1.zip)
* Download the latest release: [v0.8.0](https://github.com/minddust/bootstrap-progressbar/archive/v0.8.0.zip)
* Clone the repository: `git clone git@github.com:minddust/bootstrap-progressbar.git`
* Install with [Bower](http://bower.io): `bower install bootstrap-progressbar`

Expand All @@ -45,20 +48,21 @@

3. set the `aria` attribute and __remove__ the `width` style attribute (alternatively you can set it to 0)

1. `aria-valuetransitiongoal`
1. `data-transitiongoal`

```html
<div class="progress">
<div class="progress-bar" aria-valuetransitiongoal="75"></div>
<div class="progress-bar" data-transitiongoal="75"></div>
</div>
```

2. `aria-valuemin` (default: 0) and `aria-valuemax` (default: 100)

```html
<div class="progress">
<div class="progress-bar" aria-valuetransitiongoal="75" aria-valuemin="-1337" aria-valuemax="9000"></div>
<div class="progress-bar" data-transitiongoal="75" aria-valuemin="-1337" aria-valuemax="9000"></div>
</div>
```


## Usage Extended
Expand All @@ -84,7 +88,7 @@

* Multiple trigger

You can trigger progressbar as much as you want. Just change your `aria` attribute(s) and trigger `.progressbar()` again. All settings made before will be kept.
You can trigger progressbar as much as you want. Just change your attribute(s) and trigger `.progressbar()` again. All settings made before will be kept.


## Settings
Expand Down Expand Up @@ -139,7 +143,7 @@ So if `use_percentage` is false and `aria-valuemin` and `aria-valuemax` are not

Example:

`<div class="progress-bar" aria-valuetransitiongoal="75">`
`<div class="progress-bar" data-transitiongoal="75">`

with `use_percentage: true` is the final text: `75%`

Expand Down
20 changes: 10 additions & 10 deletions bootstrap-progressbar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* bootstrap-progressbar v0.7.1 by @minddust
* Copyright (c) 2012-2014 Stephan Gross
* bootstrap-progressbar v0.8.0 by @minddust
* Copyright (c) 2012-2014 Stephan Groß
*
* https://www.minddust.com/bootstrap-progressbar
* http://www.minddust.com/project/bootstrap-progressbar/
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
Expand All @@ -25,7 +25,7 @@
display_text: 'none',
use_percentage: true,
percent_format: function(percent) { return percent + '%'; },
amount_format: function(amount_part, amount_total) { return amount_part + ' / ' + amount_total; },
amount_format: function(amount_part, amount_max, amount_min) { return amount_part + ' / ' + amount_max; },
update: $.noop,
done: $.noop,
fail: $.noop
Expand All @@ -37,19 +37,19 @@
var $back_text = this.$back_text;
var $front_text = this.$front_text;
var options = this.options;
var aria_valuetransitiongoal = $this.attr('aria-valuetransitiongoal');
var data_transitiongoal = $this.attr('data-transitiongoal');
var aria_valuemin = $this.attr('aria-valuemin') || 0;
var aria_valuemax = $this.attr('aria-valuemax') || 100;
var is_vertical = $parent.hasClass('vertical');
var update = options.update && typeof options.update === 'function' ? options.update : Progressbar.defaults.update;
var done = options.done && typeof options.done === 'function' ? options.done : Progressbar.defaults.done;
var fail = options.fail && typeof options.fail === 'function' ? options.fail : Progressbar.defaults.fail;

if (!aria_valuetransitiongoal) {
fail('aria-valuetransitiongoal not set');
if (!data_transitiongoal) {
fail('data-transitiongoal not set');
return;
}
var percentage = Math.round(100 * (aria_valuetransitiongoal - aria_valuemin) / (aria_valuemax - aria_valuemin));
var percentage = Math.round(100 * (data_transitiongoal - aria_valuemin) / (aria_valuemax - aria_valuemin));

if (options.display_text === 'center' && !$back_text && !$front_text) {
this.$back_text = $back_text = $('<span>').addClass('progressbar-back-text').prependTo($parent);
Expand Down Expand Up @@ -108,13 +108,13 @@

if (current_percentage >= percentage) {
current_percentage = percentage;
current_value = aria_valuetransitiongoal;
current_value = data_transitiongoal;
done();
clearInterval(progress);
}

if (options.display_text !== 'none') {
text = options.use_percentage ? options.percent_format(current_percentage) : options.amount_format(current_value, aria_valuemax);
text = options.use_percentage ? options.percent_format(current_percentage) : options.amount_format(current_value, aria_valuemax, aria_valuemin);

if (options.display_text === 'fill') {
$this.text(text);
Expand Down
4 changes: 2 additions & 2 deletions bootstrap-progressbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-progressbar",
"version": "0.7.1",
"version": "0.8.0",
"main": "./bootstrap-progressbar.js",
"ignore": [
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.0.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.0.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.0.1.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.2.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.0.2.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.3.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.0.3.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.0.4.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.0.4.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.1.0.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.1.0.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.1.1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.1.1.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.2.0.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.2.0.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.2.1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.2.1.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.2.2.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.2.2.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.3.0.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.3.0.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.3.1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.3.1.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-2.3.2.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap-progressbar-2.3.2.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/bootstrap-progressbar-3.0.0-rc1.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bootstrap-progressbar v0.7.1 | Copyright (c) 2012-2014 Stephan Gross | MIT license | minddust.com */
/*! bootstrap-progressbar v0.8.0 | Copyright (c) 2012-2014 Stephan Groß | MIT license | minddust.com */
.progress {
position: relative;
}
Expand Down
Loading

0 comments on commit 54767be

Please sign in to comment.