Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-includes/js/jquery/ui
NameTypeSizeActions
📁 .. Folder -
📄 accordion.js File 16138
Edit Download
📄 accordion.min.js File 8860
Edit Download
📄 autocomplete.js File 17530
Edit Download
📄 autocomplete.min.js File 8536
Edit Download
📄 button.js File 11706
Edit Download
📄 button.min.js File 6154
Edit Download
📄 checkboxradio.js File 7589
Edit Download
📄 checkboxradio.min.js File 4348
Edit Download
📄 controlgroup.js File 8626
Edit Download
📄 controlgroup.min.js File 4402
Edit Download
📄 core.js File 49888
Edit Download
📄 core.min.js File 21464
Edit Download
📄 datepicker.js File 82523
Edit Download
📄 datepicker.min.js File 36748
Edit Download
📄 dialog.js File 23896
Edit Download
📄 dialog.min.js File 13098
Edit Download
📄 draggable.js File 35546
Edit Download
📄 draggable.min.js File 18420
Edit Download
📄 droppable.js File 12899
Edit Download
📄 droppable.min.js File 6665
Edit Download
📄 effect-blind.js File 1644
Edit Download
📄 effect-blind.min.js File 880
Edit Download
📄 effect-bounce.js File 2660
Edit Download
📄 effect-bounce.min.js File 991
Edit Download
📄 effect-clip.js File 1577
Edit Download
📄 effect-clip.min.js File 796
Edit Download
📄 effect-drop.js File 1595
Edit Download
📄 effect-drop.min.js File 753
Edit Download
📄 effect-explode.js File 2924
Edit Download
📄 effect-explode.min.js File 1122
Edit Download
📄 effect-fade.js File 968
Edit Download
📄 effect-fade.min.js File 525
Edit Download
📄 effect-fold.js File 2185
Edit Download
📄 effect-fold.min.js File 1020
Edit Download
📄 effect-highlight.js File 1243
Edit Download
📄 effect-highlight.min.js File 648
Edit Download
📄 effect-puff.js File 995
Edit Download
📄 effect-puff.min.js File 510
Edit Download
📄 effect-pulsate.js File 1567
Edit Download
📄 effect-pulsate.min.js File 688
Edit Download
📄 effect-scale.js File 1373
Edit Download
📄 effect-scale.min.js File 723
Edit Download
📄 effect-shake.js File 1884
Edit Download
📄 effect-shake.min.js File 846
Edit Download
📄 effect-size.js File 5418
Edit Download
📄 effect-size.min.js File 2491
Edit Download
📄 effect-slide.js File 1967
Edit Download
📄 effect-slide.min.js File 917
Edit Download
📄 effect-transfer.js File 888
Edit Download
📄 effect-transfer.min.js File 442
Edit Download
📄 effect.js File 24613
Edit Download
📄 effect.min.js File 10332
Edit Download
📄 menu.js File 18960
Edit Download
📄 menu.min.js File 10199
Edit Download
📄 mouse.js File 6227
Edit Download
📄 mouse.min.js File 3428
Edit Download
📄 progressbar.js File 4239
Edit Download
📄 progressbar.min.js File 2558
Edit Download
📄 resizable.js File 30490
Edit Download
📄 resizable.min.js File 18824
Edit Download
📄 selectable.js File 8129
Edit Download
📄 selectable.min.js File 4506
Edit Download
📄 selectmenu.js File 16346
Edit Download
📄 selectmenu.min.js File 9502
Edit Download
📄 slider.js File 19599
Edit Download
📄 slider.min.js File 10759
Edit Download
📄 sortable.js File 47641
Edit Download
📄 sortable.min.js File 25504
Edit Download
📄 spinner.js File 14434
Edit Download
📄 spinner.min.js File 7676
Edit Download
📄 tabs.js File 23664
Edit Download
📄 tabs.min.js File 12008
Edit Download
📄 tooltip.js File 14476
Edit Download
📄 tooltip.min.js File 6244
Edit Download

View File: progressbar.js

/*!
 * jQuery UI Progressbar 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */

//>>label: Progressbar
//>>group: Widgets
/* eslint-disable max-len */
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
/* eslint-enable max-len */
//>>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.13.3",
	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" );
		}
	}
} );

} );