/home/techb158/exp.abdallabala.com/ui/theme/ibilling/lib
NameSizeModeActions
chart/-0755rm
datepaginator/-0755rm
datepicker/-0755rm
fa/-0755rm
icheck/-0755rm
.DS_Store102440644editdlrm
accounts.js13450644editdlrm
add-case.js16430644editdlrm
add-project.js17240644editdlrm
bootbox.min.js129630644editdlrm
cal.js39730644editdlrm
cases-list.js32670644editdlrm
custom-fields.js27260644editdlrm
edit-invoice-bckp.js104860644editdlrm
edit-invoice.js77440644editdlrm
feature-settings.js28000644editdlrm
index.html1120644editdlrm
invoice-v-2-1.js159430644editdlrm
jquery.maskMoney.min.js50700644editdlrm
list-contacts.js3980644editdlrm
login.js00644editdlrm
manage-users.js19420644editdlrm
modal.js266340644editdlrm
moment.js1066180644editdlrm
notes.js2710644editdlrm
pg.js13580644editdlrm
plugins.js17370644editdlrm
progress.js52970644editdlrm
ps-list.js34700644editdlrm
repeating-expense.js42560644editdlrm
repeating-income.js42540644editdlrm
repeating-view.js33880644editdlrm
tasks.js3200644editdlrm
tax.js30980644editdlrm
Edit: /home/techb158/exp.abdallabala.com/ui/theme/ibilling/lib/progress.js (5297B)
!function ($) { var ProgressBar = function (element, options) { this.element = $(element); this.position = 0; this.percent = 0; var hasOptions = typeof options == 'object'; this.dangerMarker = $.fn.progressbar.defaults.dangerMarker; if (hasOptions && typeof options.dangerMarker == 'number') { this.setDangerMarker(options.dangerMarker); } this.warningMarker = $.fn.progressbar.defaults.warningMarker; if (hasOptions && typeof options.warningMarker == 'number') { this.setWarningMarker(options.warningMarker); } this.maximum = $.fn.progressbar.defaults.maximum; if (hasOptions && typeof options.maximum == 'number') { this.setMaximum(options.maximum); } this.step = $.fn.progressbar.defaults.step; if (hasOptions && typeof options.step == 'number') { this.setStep(options.step); } this.element.html($(DRPGlobal.template)); }; ProgressBar.prototype = { constructor: ProgressBar, stepIt: function () { if (this.position < this.maximum) this.position += this.step; this.setPosition(this.position); }, setWarningMarker: function (marker) { marker = parseInt(marker); if (marker > this.dangerMarker) { this.warningMarker = this.dangerMarker; return; } this.warningMarker = marker; }, setDangerMarker: function (marker) { this.dangerMarker = parseInt(marker); }, setMaximum: function (maximum) { this.maximum = parseInt(maximum); }, setStep: function (step) { step = parseInt(step); if (step <= 0) step = 1; this.step = parseInt(step); }, setPosition: function (position) { position = parseInt(position); if (position < 0) position = 0; if (position > this.maximum) position = this.maximum; this.position = position; this.percent = Math.ceil((this.position / this.maximum) * 100); try { if (this.percent <= this.warningMarker) { this.element.find('.bar-success').css('width', this.percent + "%"); this.element.find('.bar-warning').css('width', "0%"); this.element.find('.bar-danger').css('width', "0%"); return; } this.element.find('.bar-success').css('width', this.warningMarker + "%"); if (this.percent > this.warningMarker && this.percent <= this.dangerMarker) { this.element.find('.bar-warning').css('width', (this.percent - this.warningMarker) + "%"); this.element.find('.bar-danger').css('width', "0%"); return; } this.element.find('.bar-warning').css('width', (this.dangerMarker - this.warningMarker) + "%"); this.element.find('.bar-danger').css('width', (this.percent - this.dangerMarker) + "%"); } finally { this._triggerPositionChanged(); } }, reset: function () { this.position = 0; this.percent = 0; this._triggerPositionChanged(); this.element.find('.bar-success').css('width', "0%"); this.element.find('.bar-warning').css('width', "0%"); this.element.find('.bar-danger').css('width', "0%"); }, _triggerPositionChanged: function () { this.element.trigger({ type: "positionChanged", position: this.position, percent: this.percent }); } }; $.fn.progressbar = function (option) { var args = Array.apply(null, arguments); args.shift(); return this.each(function () { var $this = $(this), data = $this.data('progressbar'), options = typeof option == 'object' && option; if (!data) { $this.data('progressbar', new ProgressBar(this, $.extend({}, $.fn.progressbar().defaults, options))); } if (typeof option == 'string' && typeof data[option] == 'function') { data[option].apply(data, args); } }); }; $.fn.progressbar.defaults = { warningMarker: 50, dangerMarker: 90, maximum: 100, step: 1 }; $.fn.progressbar.Constructor = ProgressBar; var DRPGlobal = {}; DRPGlobal.template = '
' + '
' + '
' + '
' + '
'; } (window.jQuery);