|
|
@ -78,8 +78,8 @@ function ProgressBar_setValue(value) { |
|
|
|
this.vals.value = value; |
|
|
|
this.vals.value = value; |
|
|
|
this.vals.dark.empty(); |
|
|
|
this.vals.dark.empty(); |
|
|
|
this.vals.light.empty(); |
|
|
|
this.vals.light.empty(); |
|
|
|
this.vals.dark.appendText(value + '%'); |
|
|
|
this.vals.dark.appendText(value.round(1).toFixed(1) + '%'); |
|
|
|
this.vals.light.appendText(value + '%'); |
|
|
|
this.vals.light.appendText(value.round(1).toFixed(1) + '%'); |
|
|
|
var r = parseInt(this.vals.width * (value / 100)); |
|
|
|
var r = parseInt(this.vals.width * (value / 100)); |
|
|
|
this.vals.dark.setStyle('clip', 'rect(0,' + r + 'px,' + this.vals.height + 'px,0)'); |
|
|
|
this.vals.dark.setStyle('clip', 'rect(0,' + r + 'px,' + this.vals.height + 'px,0)'); |
|
|
|
this.vals.light.setStyle('clip', 'rect(0,' + this.vals.width + 'px,' + this.vals.height + 'px,' + r + 'px)'); |
|
|
|
this.vals.light.setStyle('clip', 'rect(0,' + this.vals.width + 'px,' + this.vals.height + 'px,' + r + 'px)'); |
|
|
|