Server IP : 10.106.20.8  /  Your IP : 216.73.216.148
Web Server : Apache
System : Linux webm008.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : sixiemesrc ( 611999)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/s/../sixiemesrc/new/wp-content/plugins/debug-bar/js/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/s/../sixiemesrc/new/wp-content/plugins/debug-bar/js/ui-dockable.dev.js
/**
 * Dockable.
 **/
(function($){
	$.widget("db.dockable", $.ui.mouse, {
		options: {
			handle: false,
			axis: 'y',
			resize: function() {},
			resized: function() {}
		},
		_create: function() {
			if ( this.options.axis == 'x' ) {
				this.page = 'pageX';
				this.dimension = 'width';
			} else {
				this.page = 'pageY';
				this.dimension = 'height';
			}

			if ( ! this.options.handle )
				return;

			this.handle = $( this.options.handle );

			this._mouseInit();
		},
		_handoff: function() {
			return {
				element: this.element,
				handle: this.handle,
				axis: this.options.axis
			};
		},
		_mouseStart: function(event) {
			this._trigger( "start", event, this._handoff() );
			this.d0 = this.element[this.dimension]() + event[this.page];
		},
		_mouseDrag: function(event) {
			var resize = this._trigger( "resize", event, this._handoff() );

			// If the resize event returns false, we don't resize.
			if ( resize === false )
				return;

			this.element[this.dimension]( this.d0 - event[this.page] );
			this._trigger( "resized", event, this._handoff() );
		},
		_mouseCapture: function(event) {
			return !this.options.disabled && event.target == this.handle[0];
		},
		_mouseStop: function(event) {
			this._trigger( "stop", event, this._handoff() );
		}
	});
})(jQuery);