uawdijnntqw1x1x1
IP : 216.73.216.87
Hostname : www.vorobey-market.ru
Kernel : Linux www.vorobey-market.ru 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
bitrix
/
vorobey-clubru
/
478ab
/
..
/
bitrix
/
js
/
scale
/
itloadbar.js
/
/
/** * Class BX.Scale.InfoTable.LoadBar * Info Table's LoadBar control */ ;(function(window) { if (BX.Scale.InfoTable.LoadBar) return; /** * Class BX.Scale.InfoTable.LoadBar * @constructor */ BX.Scale.InfoTable.LoadBar = function (id, value) { this.id = id; this.domObj = null; this.value = parseInt(value) || 0; }; /** * Returns DOM object contains server data * @returns {object} */ BX.Scale.InfoTable.LoadBar.prototype.getDomObj = function() { if(!this.domObj) { this.domObj = BX.create('span',{props:{className:"adm-table-state"}}); this.domObj.appendChild(BX.create('span',{props:{className:"adm-table-state-white"}})); this.domObj.id = this.id; if(parseInt(this.value) > 0) this.setValue(this.value); } return this.domObj; }; /** * Sets the bar value * @param value * @returns {boolean} */ BX.Scale.InfoTable.LoadBar.prototype.setValue = function(value) { if(!this.domObj) return false; value = parseInt(value); if(value < 0) this.value = 0; else if(value > 100) this.value = 100; else this.value = value; this.domObj.children[0].style.left = value+"%"; return value; }; })(window);
/home/bitrix/vorobey-clubru/478ab/../bitrix/js/scale/itloadbar.js