Revision 80ec0af8 snf-astakos-app/astakos/im/static/im/js/usage.js
b/snf-astakos-app/astakos/im/static/im/js/usage.js | ||
---|---|---|
110 | 110 |
|
111 | 111 |
width = humanize.numberFormat(width, 1); |
112 | 112 |
barEl.css({'width': width + '%'}); |
113 |
width = width*342/100; |
|
113 | 114 |
|
114 |
if (percentage > 18) { |
|
115 |
percentageEl.addClass("hovered"); |
|
115 |
if (percentage > 22) { |
|
116 |
percentageEl.addClass("hovered"); |
|
117 |
var left = width-percentageEl.width() -10; |
|
118 |
percentageEl.css({'left': left+"px", 'color':'#fff'}); |
|
116 | 119 |
} else { |
117 | 120 |
percentageEl.removeClass("hovered"); |
121 |
percentageEl.css({'left': width+"px", 'color':'#222'}); |
|
118 | 122 |
} |
119 | 123 |
percentageEl.data('value', percentage); |
120 | 124 |
|
Also available in: Unified diff