/*!
* jQuery UI Progressbar 1.14.2
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
//>>label: Progressbar
//>>group: Widgets
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
//>>docs: https://api.jqueryui.com/progressbar/
//>>demos: https://jqueryui.com/progressbar/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/progressbar.css
//>>css.theme: ../../themes/base/theme.css
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"../version",
"../widget"
], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
return $.widget( "ui.progressbar", {
version: "1.14.2",
options: {
classes: {
"ui-progressbar": "ui-corner-all",
"ui-progressbar-value": "ui-corner-left",
"ui-progressbar-complete": "ui-corner-right"
},
max: 100,
value: 0,
change: null,
complete: null
},
min: 0,
_create: function() {
// Constrain initial value
this.oldValue = this.options.value = this._constrainedValue();
this.element.attr( {
// Only set static values; aria-valuenow and aria-valuemax are
// set inside _refreshValue()
role: "progressbar",
"aria-valuemin": this.min
} );
this._addClass( "ui-progressbar", "ui-widget ui-widget-content" );
this.valueDiv = $( "<div>" ).appendTo( this.element );
this._addClass( this.valueDiv, "ui-progressbar-value", "ui-widget-header" );
this._refreshValue();
},
_destroy: function() {
this.element.removeAttr( "role aria-valuemin aria-valuemax aria-valuenow" );
this.valueDiv.remove();
},
value: function( newValue ) {
if ( newValue === undefined ) {
return this.options.value;
}
this.options.value = this._constrainedValue( newValue );
this._refreshValue();
},
_constrainedValue: function( newValue ) {
if ( newValue === undefined ) {
newValue = this.options.value;
}
this.indeterminate = newValue === false;
// Sanitize value
if ( typeof newValue !== "number" ) {
newValue = 0;
}
return this.indeterminate ? false :
Math.min( this.options.max, Math.max( this.min, newValue ) );
},
_setOptions: function( options ) {
// Ensure "value" option is set after other values (like max)
var value = options.value;
delete options.value;
this._super( options );
this.options.value = this._constrainedValue( value );
this._refreshValue();
},
_setOption: function( key, value ) {
if ( key === "max" ) {
// Don't allow a max less than min
value = Math.max( this.min, value );
}
this._super( key, value );
},
_setOptionDisabled: function( value ) {
this._super( value );
this.element.attr( "aria-disabled", value );
this._toggleClass( null, "ui-state-disabled", !!value );
},
_percentage: function() {
return this.indeterminate ?
100 :
100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
},
_refreshValue: function() {
var value = this.options.value,
percentage = this._percentage();
this.valueDiv
.toggle( this.indeterminate || value > this.min )
.width( percentage.toFixed( 0 ) + "%" );
this
._toggleClass( this.valueDiv, "ui-progressbar-complete", null,
value === this.options.max )
._toggleClass( "ui-progressbar-indeterminate", null, this.indeterminate );
if ( this.indeterminate ) {
this.element.removeAttr( "aria-valuenow" );
if ( !this.overlayDiv ) {
this.overlayDiv = $( "<div>" ).appendTo( this.valueDiv );
this._addClass( this.overlayDiv, "ui-progressbar-overlay" );
}
} else {
this.element.attr( {
"aria-valuemax": this.options.max,
"aria-valuenow": value
} );
if ( this.overlayDiv ) {
this.overlayDiv.remove();
this.overlayDiv = null;
}
}
if ( this.oldValue !== value ) {
this.oldValue = value;
this._trigger( "change" );
}
if ( value === this.options.max ) {
this._trigger( "complete" );
}
}
} );
} );
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| accordion.js | 2026-10-22 10:47 | 15.48 KB | 76129f60960:kunden | -xw-x--x-- | |
| accordion.min.js | 2026-10-22 10:47 | 8.54 KB | 76129f60960:kunden | -xw-x--x-- | |
| autocomplete.js | 2026-10-22 10:47 | 15.8 KB | 76129f60960:kunden | -xw-x--x-- | |
| autocomplete.min.js | 2026-10-22 10:47 | 8.08 KB | 76129f60960:kunden | -xw-x--x-- | |
| button.js | 2026-10-22 10:47 | 11.4 KB | 76129f60960:kunden | -xw-x--x-- | |
| button.min.js | 2026-10-22 10:47 | 6.01 KB | 76129f60960:kunden | -xw-x--x-- | |
| checkboxradio.js | 2026-10-22 10:47 | 7.42 KB | 76129f60960:kunden | -xw-x--x-- | |
| checkboxradio.min.js | 2026-10-22 10:47 | 4.25 KB | 76129f60960:kunden | -xw-x--x-- | |
| controlgroup.js | 2026-10-22 10:47 | 8.42 KB | 76129f60960:kunden | -xw-x--x-- | |
| controlgroup.min.js | 2026-10-22 10:47 | 4.3 KB | 76129f60960:kunden | -xw-x--x-- | |
| core.js | 2026-10-22 10:47 | 45.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| core.min.js | 2026-10-22 10:47 | 18.24 KB | 76129f60960:kunden | -xw-x--x-- | |
| datepicker.js | 2026-10-22 10:47 | 80.36 KB | 76129f60960:kunden | -xw-x--x-- | |
| datepicker.min.js | 2026-10-22 10:47 | 35.88 KB | 76129f60960:kunden | -xw-x--x-- | |
| dialog.js | 2026-10-22 10:47 | 22.79 KB | 76129f60960:kunden | -xw-x--x-- | |
| dialog.min.js | 2026-10-22 10:47 | 12.89 KB | 76129f60960:kunden | -xw-x--x-- | |
| draggable.js | 2026-10-22 10:47 | 34.66 KB | 76129f60960:kunden | -xw-x--x-- | |
| draggable.min.js | 2026-10-22 10:47 | 17.94 KB | 76129f60960:kunden | -xw-x--x-- | |
| droppable.js | 2026-10-22 10:47 | 12.6 KB | 76129f60960:kunden | -xw-x--x-- | |
| droppable.min.js | 2026-10-22 10:47 | 6.51 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-blind.js | 2026-10-22 10:47 | 1.61 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-blind.min.js | 2026-10-22 10:47 | 880 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-bounce.js | 2026-10-22 10:47 | 2.6 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-bounce.min.js | 2026-10-22 10:47 | 991 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-clip.js | 2026-10-22 10:47 | 1.54 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-clip.min.js | 2026-10-22 10:47 | 796 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-drop.js | 2026-10-22 10:47 | 1.56 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-drop.min.js | 2026-10-22 10:47 | 753 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-explode.js | 2026-10-22 10:47 | 2.8 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-explode.min.js | 2026-10-22 10:47 | 1.1 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-fade.js | 2026-10-22 10:47 | 968 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-fade.min.js | 2026-10-22 10:47 | 525 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-fold.js | 2026-10-22 10:47 | 2.13 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-fold.min.js | 2026-10-22 10:47 | 1020 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-highlight.js | 2026-10-22 10:47 | 1.21 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-highlight.min.js | 2026-10-22 10:47 | 648 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-puff.js | 2026-10-22 10:47 | 995 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-puff.min.js | 2026-10-22 10:47 | 510 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-pulsate.js | 2026-10-22 10:47 | 1.53 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-pulsate.min.js | 2026-10-22 10:47 | 688 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-scale.js | 2026-10-22 10:47 | 1.34 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-scale.min.js | 2026-10-22 10:47 | 723 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-shake.js | 2026-10-22 10:47 | 1.84 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-shake.min.js | 2026-10-22 10:47 | 846 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-size.js | 2026-10-22 10:47 | 5.29 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-size.min.js | 2026-10-22 10:47 | 2.43 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-slide.js | 2026-10-22 10:47 | 1.92 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect-slide.min.js | 2026-10-22 10:47 | 917 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-transfer.js | 2026-10-22 10:47 | 887 B | 76129f60960:kunden | -xw-x--x-- | |
| effect-transfer.min.js | 2026-10-22 10:47 | 442 B | 76129f60960:kunden | -xw-x--x-- | |
| effect.js | 2026-10-22 10:47 | 23.5 KB | 76129f60960:kunden | -xw-x--x-- | |
| effect.min.js | 2026-10-22 10:47 | 9.86 KB | 76129f60960:kunden | -xw-x--x-- | |
| menu.js | 2026-10-22 10:47 | 18.46 KB | 76129f60960:kunden | -xw-x--x-- | |
| menu.min.js | 2026-10-22 10:47 | 9.92 KB | 76129f60960:kunden | -xw-x--x-- | |
| mouse.js | 2026-10-22 10:47 | 5.49 KB | 76129f60960:kunden | -xw-x--x-- | |
| mouse.min.js | 2026-10-22 10:47 | 3.22 KB | 76129f60960:kunden | -xw-x--x-- | |
| progressbar.js | 2026-10-22 10:47 | 4.08 KB | 76129f60960:kunden | -xw-x--x-- | |
| progressbar.min.js | 2026-10-22 10:47 | 2.5 KB | 76129f60960:kunden | -xw-x--x-- | |
| resizable.js | 2026-10-22 10:47 | 31.31 KB | 76129f60960:kunden | -xw-x--x-- | |
| resizable.min.js | 2026-10-22 10:47 | 18.99 KB | 76129f60960:kunden | -xw-x--x-- | |
| selectable.js | 2026-10-22 10:47 | 7.94 KB | 76129f60960:kunden | -xw-x--x-- | |
| selectable.min.js | 2026-10-22 10:47 | 4.4 KB | 76129f60960:kunden | -xw-x--x-- | |
| selectmenu.js | 2026-10-22 10:47 | 15.25 KB | 76129f60960:kunden | -xw-x--x-- | |
| selectmenu.min.js | 2026-10-22 10:47 | 9.12 KB | 76129f60960:kunden | -xw-x--x-- | |
| slider.js | 2026-10-22 10:47 | 19.14 KB | 76129f60960:kunden | -xw-x--x-- | |
| slider.min.js | 2026-10-22 10:47 | 10.51 KB | 76129f60960:kunden | -xw-x--x-- | |
| sortable.js | 2026-10-22 10:47 | 46.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| sortable.min.js | 2026-10-22 10:47 | 24.73 KB | 76129f60960:kunden | -xw-x--x-- | |
| spinner.js | 2026-10-22 10:47 | 14.03 KB | 76129f60960:kunden | -xw-x--x-- | |
| spinner.min.js | 2026-10-22 10:47 | 7.45 KB | 76129f60960:kunden | -xw-x--x-- | |
| tabs.js | 2026-10-22 10:47 | 22.95 KB | 76129f60960:kunden | -xw-x--x-- | |
| tabs.min.js | 2026-10-22 10:47 | 11.51 KB | 76129f60960:kunden | -xw-x--x-- | |
| tooltip.js | 2026-10-22 10:47 | 13.96 KB | 76129f60960:kunden | -xw-x--x-- | |
| tooltip.min.js | 2026-10-22 10:47 | 6.07 KB | 76129f60960:kunden | -xw-x--x-- | |