GRAYBYTE WORDPRESS FILE MANAGER2392

Server IP : 149.255.58.128 / Your IP : 216.73.216.46
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/wheelch2/mobilityscooterkemer.com/wp-admin/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/mobilityscooterkemer.com/wp-admin/js//color-picker.js
/**
 * @output wp-admin/js/color-picker.js
 */

( function( $, undef ) {

	var ColorPicker,
		_before = '<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',
		_after = '<div class="wp-picker-holder" />',
		_wrap = '<div class="wp-picker-container" />',
		_button = '<input type="button" class="button button-small" />',
		_wrappingLabel = '<label></label>',
		_wrappingLabelText = '<span class="screen-reader-text"></span>',
		__ = wp.i18n.__;

	/**
	 * Creates a jQuery UI color picker that is used in the theme customizer.
	 *
	 * @class $.widget.wp.wpColorPicker
	 *
	 * @since 3.5.0
	 */
	ColorPicker = /** @lends $.widget.wp.wpColorPicker.prototype */{
		options: {
			defaultColor: false,
			change: false,
			clear: false,
			hide: true,
			palettes: true,
			width: 255,
			mode: 'hsv',
			type: 'full',
			slider: 'horizontal'
		},
		/**
		 * Creates a color picker that only allows you to adjust the hue.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_createHueOnly: function() {
			var self = this,
				el = self.element,
				color;

			el.hide();

			// Set the saturation to the maximum level.
			color = 'hsl(' + el.val() + ', 100, 50)';

			// Create an instance of the color picker, using the hsl mode.
			el.iris( {
				mode: 'hsl',
				type: 'hue',
				hide: false,
				color: color,
				/**
				 * Handles the onChange event if one has been defined in the options.
				 *
				 * @ignore
				 *
				 * @param {Event} event    The event that's being called.
				 * @param {HTMLElement} ui The HTMLElement containing the color picker.
				 *
				 * @return {void}
				 */
				change: function( event, ui ) {
					if ( typeof self.options.change === 'function' ) {
						self.options.change.call( this, event, ui );
					}
				},
				width: self.options.width,
				slider: self.options.slider
			} );
		},
		/**
		 * Creates the color picker, sets default values, css classes and wraps it all in HTML.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_create: function() {
			// Return early if Iris support is missing.
			if ( ! $.support.iris ) {
				return;
			}

			var self = this,
				el = self.element;

			// Override default options with options bound to the element.
			$.extend( self.options, el.data() );

			// Create a color picker which only allows adjustments to the hue.
			if ( self.options.type === 'hue' ) {
				return self._createHueOnly();
			}

			// Bind the close event.
			self.close = self.close.bind( self );

			self.initialValue = el.val();

			// Add a CSS class to the input field.
			el.addClass( 'wp-color-picker' );

			/*
			 * Check if there's already a wrapping label, e.g. in the Customizer.
			 * If there's no label, add a default one to match the Customizer template.
			 */
			if ( ! el.parent( 'label' ).length ) {
				// Wrap the input field in the default label.
				el.wrap( _wrappingLabel );
				// Insert the default label text.
				self.wrappingLabelText = $( _wrappingLabelText )
					.insertBefore( el )
					.text( __( 'Color value' ) );
			}

			/*
			 * At this point, either it's the standalone version or the Customizer
			 * one, we have a wrapping label to use as hook in the DOM, let's store it.
			 */
			self.wrappingLabel = el.parent();

			// Wrap the label in the main wrapper.
			self.wrappingLabel.wrap( _wrap );
			// Store a reference to the main wrapper.
			self.wrap = self.wrappingLabel.parent();
			// Set up the toggle button and insert it before the wrapping label.
			self.toggler = $( _before )
				.insertBefore( self.wrappingLabel )
				.css( { backgroundColor: self.initialValue } );
			// Set the toggle button span element text.
			self.toggler.find( '.wp-color-result-text' ).text( __( 'Select Color' ) );
			// Set up the Iris container and insert it after the wrapping label.
			self.pickerContainer = $( _after ).insertAfter( self.wrappingLabel );
			// Store a reference to the Clear/Default button.
			self.button = $( _button );

			// Set up the Clear/Default button.
			if ( self.options.defaultColor ) {
				self.button
					.addClass( 'wp-picker-default' )
					.val( __( 'Default' ) )
					.attr( 'aria-label', __( 'Select default color' ) );
			} else {
				self.button
					.addClass( 'wp-picker-clear' )
					.val( __( 'Clear' ) )
					.attr( 'aria-label', __( 'Clear color' ) );
			}

			// Wrap the wrapping label in its wrapper and append the Clear/Default button.
			self.wrappingLabel
				.wrap( '<span class="wp-picker-input-wrap hidden" />' )
				.after( self.button );

			/*
			 * The input wrapper now contains the label+input+Clear/Default button.
			 * Store a reference to the input wrapper: we'll use this to toggle
			 * the controls visibility.
			 */
			self.inputWrapper = el.closest( '.wp-picker-input-wrap' );

			el.iris( {
				target: self.pickerContainer,
				hide: self.options.hide,
				width: self.options.width,
				mode: self.options.mode,
				palettes: self.options.palettes,
				/**
				 * Handles the onChange event if one has been defined in the options and additionally
				 * sets the background color for the toggler element.
				 *
				 * @since 3.5.0
				 *
				 * @ignore
				 *
				 * @param {Event} event    The event that's being called.
				 * @param {HTMLElement} ui The HTMLElement containing the color picker.
				 *
				 * @return {void}
				 */
				change: function( event, ui ) {
					self.toggler.css( { backgroundColor: ui.color.toString() } );

					if ( typeof self.options.change === 'function' ) {
						self.options.change.call( this, event, ui );
					}
				}
			} );

			el.val( self.initialValue );
			self._addListeners();

			// Force the color picker to always be closed on initial load.
			if ( ! self.options.hide ) {
				self.toggler.click();
			}
		},
		/**
		 * Binds event listeners to the color picker.
		 *
		 * @since 3.5.0
		 * @access private
		 *
		 * @return {void}
		 */
		_addListeners: function() {
			var self = this;

			/**
			 * Prevent any clicks inside this widget from leaking to the top and closing it.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.wrap.on( 'click.wpcolorpicker', function( event ) {
				event.stopPropagation();
			});

			/**
			 * Open or close the color picker depending on the class.
			 *
			 * @since 3.5.0
			 */
			self.toggler.on( 'click', function(){
				if ( self.toggler.hasClass( 'wp-picker-open' ) ) {
					self.close();
				} else {
					self.open();
				}
			});

			/**
			 * Checks if value is empty when changing the color in the color picker.
			 * If so, the background color is cleared.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.element.on( 'change', function( event ) {
				var me = $( this ),
					val = me.val();

				if ( val === '' || val === '#' ) {
					self.toggler.css( 'backgroundColor', '' );
					// Fire clear callback if we have one.
					if ( typeof self.options.clear === 'function' ) {
						self.options.clear.call( this, event );
					}
				}
			});

			/**
			 * Enables the user to either clear the color in the color picker or revert back to the default color.
			 *
			 * @since 3.5.0
			 *
			 * @param {Event} event The event that's being called.
			 *
			 * @return {void}
			 */
			self.button.on( 'click', function( event ) {
				var me = $( this );
				if ( me.hasClass( 'wp-picker-clear' ) ) {
					self.element.val( '' );
					self.toggler.css( 'backgroundColor', '' );
					if ( typeof self.options.clear === 'function' ) {
						self.options.clear.call( this, event );
					}
				} else if ( me.hasClass( 'wp-picker-default' ) ) {
					self.element.val( self.options.defaultColor ).change();
				}
			});
		},
		/**
		 * Opens the color picker dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		open: function() {
			this.element.iris( 'toggle' );
			this.inputWrapper.removeClass( 'hidden' );
			this.wrap.addClass( 'wp-picker-active' );
			this.toggler
				.addClass( 'wp-picker-open' )
				.attr( 'aria-expanded', 'true' );
			$( 'body' ).trigger( 'click.wpcolorpicker' ).on( 'click.wpcolorpicker', this.close );
		},
		/**
		 * Closes the color picker dialog.
		 *
		 * @since 3.5.0
		 *
		 * @return {void}
		 */
		close: function() {
			this.element.iris( 'toggle' );
			this.inputWrapper.addClass( 'hidden' );
			this.wrap.removeClass( 'wp-picker-active' );
			this.toggler
				.removeClass( 'wp-picker-open' )
				.attr( 'aria-expanded', 'false' );
			$( 'body' ).off( 'click.wpcolorpicker', this.close );
		},
		/**
		 * Returns the iris object if no new color is provided. If a new color is provided, it sets the new color.
		 *
		 * @param newColor {string|*} The new color to use. Can be undefined.
		 *
		 * @since 3.5.0
		 *
		 * @return {string} The element's color.
		 */
		color: function( newColor ) {
			if ( newColor === undef ) {
				return this.element.iris( 'option', 'color' );
			}
			this.element.iris( 'option', 'color', newColor );
		},
		/**
		 * Returns the iris object if no new default color is provided.
		 * If a new default color is provided, it sets the new default color.
		 *
		 * @param newDefaultColor {string|*} The new default color to use. Can be undefined.
		 *
		 * @since 3.5.0
		 *
		 * @return {boolean|string} The element's color.
		 */
		defaultColor: function( newDefaultColor ) {
			if ( newDefaultColor === undef ) {
				return this.options.defaultColor;
			}

			this.options.defaultColor = newDefaultColor;
		}
	};

	// Register the color picker as a widget.
	$.widget( 'wp.wpColorPicker', ColorPicker );
}( jQuery ) );

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2025 06:12:06
1032 / wheelch2
0755
widgets
--
May 20 2025 06:12:20
1032 / wheelch2
0755
.htaccess
0.124 KB
May 20 2025 06:12:20
1032 / wheelch2
0444
accordion.js
2.864 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
accordion.min.js
0.74 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
application-passwords.js
6.244 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
application-passwords.min.js
2.953 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
auth-app.js
5.66 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
auth-app.min.js
2.035 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
code-editor.js
11.316 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
code-editor.min.js
3.011 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
color-picker.js
9.539 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
color-picker.min.js
3.404 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
comment.js
2.851 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
comment.min.js
1.284 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
common.js
61.15 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
common.min.js
23.121 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
custom-background.js
3.354 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
custom-background.min.js
1.178 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
custom-header.js
1.976 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
customize-controls.js
287.36 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
customize-controls.min.js
109.14 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-nav-menus.js
110.925 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-nav-menus.min.js
46.89 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-widgets.js
70.046 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
customize-widgets.min.js
27.407 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
dashboard.js
27.018 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
dashboard.min.js
8.654 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
edit-comments.js
37.115 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
edit-comments.min.js
15.125 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
editor-expand.js
41.607 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
editor-expand.min.js
13.136 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
editor.js
43.98 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
editor.min.js
12.76 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
farbtastic.js
7.665 KB
July 17 2023 22:03:26
1032 / wheelch2
0644
gallery.js
5.413 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
gallery.min.js
3.653 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
image-edit.js
39.977 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
image-edit.min.js
15.151 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-post.js
20.166 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-post.min.js
9.413 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-tax.js
7.614 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
inline-edit-tax.min.js
2.927 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
iris.min.js
23.089 KB
November 03 2021 19:40:00
1032 / wheelch2
0644
language-chooser.js
0.869 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
language-chooser.min.js
0.413 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
link.js
3.894 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
link.min.js
1.701 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
media-gallery.js
1.272 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
media-gallery.min.js
0.597 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
media-upload.js
3.384 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
media-upload.min.js
1.125 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
media.js
6.606 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
media.min.js
2.382 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
nav-menu.js
60.443 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
nav-menu.min.js
29.771 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
password-strength-meter.js
4.137 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
password-strength-meter.min.js
1.097 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
password-toggle.js
1.308 KB
June 23 2023 23:09:29
1032 / wheelch2
0644
password-toggle.min.js
0.827 KB
June 23 2023 23:09:29
1032 / wheelch2
0644
plugin-install.js
6.92 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
plugin-install.min.js
2.347 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
post.js
38.679 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
post.min.js
18.403 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
postbox.js
18.493 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
postbox.min.js
6.603 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
privacy-tools.js
10.667 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
privacy-tools.min.js
5.033 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
revisions.js
33.915 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
revisions.min.js
17.97 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
set-post-thumbnail.js
0.855 KB
July 07 2020 18:55:04
1032 / wheelch2
0644
set-post-thumbnail.min.js
0.605 KB
July 07 2020 18:55:04
1032 / wheelch2
0644
site-health.js
13.149 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
site-health.min.js
6.135 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
site-icon.js
6.097 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
site-icon.min.js
2.201 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
svg-painter.js
3.203 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
svg-painter.min.js
1.53 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
tags-box.js
10.879 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
tags-box.min.js
3.005 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
tags-suggest.js
5.636 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
tags-suggest.min.js
2.216 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
tags.js
4.851 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
tags.min.js
2.042 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme-plugin-editor.js
24.766 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme-plugin-editor.min.js
11.435 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme.js
54.667 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme.min.js
26.417 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
themes.php
0 KB
March 02 2024 06:00:09
1032 / wheelch2
0644
updates.js
109.335 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
updates.min.js
47.272 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
user-profile.js
14.995 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
user-profile.min.js
6.701 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
user-suggest.js
2.247 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
user-suggest.min.js
0.66 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
widgets.js
22.557 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
widgets.min.js
12.313 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
word-count.js
7.516 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
word-count.min.js
1.494 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
xfn.js
0.723 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
xfn.min.js
0.447 KB
March 18 2021 19:01:03
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF