CoreFiles by mySites.guru
progressbar.js1 lines, 963 bytes, from Joomla_1.6.6-Stable-Full_Package.zip
Raw History Compare with 1.6.5
md5
0b2aad455804770068e14f04ceada975
sha1
4b4092f485f1fd1fae29abbb2332e757d21c62ac
sha256
2f44923de36db3e0567987dbac1386a8ccd55ad472d3cd5cba36d8e7696a010d
Fx.ProgressBar=new Class({Extends:Fx,options:{text:null,url:null,transition:Fx.Transitions.Circ.easeOut,fit:true,link:"cancel"},initialize:function(c,b){this.element=$(c);this.parent(b);var a=this.options.url;if(a){this.element.setStyles({"background-image":"url("+a+")","background-repeat":"no-repeat"})}if(this.options.fit){a=a||this.element.getStyle("background-image").replace(/^url\(["']?|["']?\)$/g,"");if(a){var d=new Image();d.onload=function(){this.fill=d.width;d=d.onload=null;this.set(this.now||0)}.bind(this);d.src=a;if(!this.fill&&d.width){d.onload()}}}else{this.set(0)}},start:function(b,a){return this.parent(this.now,(arguments.length==1)?b.limit(0,100):b/a*100)},set:function(c){this.now=c;var a=(this.fill)?(((this.fill/-2)+(c/100)*(this.element.width||1)||0).round()+"px"):((100-c)+"%");this.element.setStyle("backgroundPosition",a+" 0px").title=Math.round(c)+"%";var b=$(this.options.text);if(b){b.set("text",Math.round(c)+"%")}return this}});

The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.