/home/player95/public_html/wp-admin/js/site-icon.js
/**
 * Handle the site icon setting in options-general.php.
 *
 * @since 6.5.0
 * @output wp-admin/js/site-icon.js
 */

/* global jQuery, wp */

( function ( $ ) {
	var $chooseButton = $( '#choose-from-library-button' ),
		$iconPreview = $( '#site-icon-preview' ),
		$browserIconPreview = $( '#browser-icon-preview' ),
		$appIconPreview = $( '#app-icon-preview' ),
		$hiddenDataField = $( '#site_icon_hidden_field' ),
		$removeButton = $( '#js-remove-site-icon' ),
		frame;

	/**
	 * Calculate image selection options based on the attachment dimensions.
	 *
	 * @since 6.5.0
	 *
	 * @param {Object} attachment The attachment object representing the image.
	 * @return {Object} The image selection options.
	 */
	function calculateImageSelectOptions( attachment ) {
		var realWidth = attachment.get( 'width' ),
			realHeight = attachment.get( 'height' ),
			xInit = 512,
			yInit = 512,
			ratio = xInit / yInit,
			xImg = xInit,
			yImg = yInit,
			x1,
			y1,
			imgSelectOptions;

		if ( realWidth / realHeight > ratio ) {
			yInit = realHeight;
			xInit = yInit * ratio;
		} else {
			xInit = realWidth;
			yInit = xInit / ratio;
		}

		x1 = ( realWidth - xInit ) / 2;
		y1 = ( realHeight - yInit ) / 2;

		imgSelectOptions = {
			aspectRatio: xInit + ':' + yInit,
			handles: true,
			keys: true,
			instance: true,
			persistent: true,
			imageWidth: realWidth,
			imageHeight: realHeight,
			minWidth: xImg > xInit ? xInit : xImg,
			minHeight: yImg > yInit ? yInit : yImg,
			x1: x1,
			y1: y1,
			x2: xInit + x1,
			y2: yInit + y1,
		};

		return imgSelectOptions;
	}

	/**
	 * Initializes the media frame for selecting or cropping an image.
	 *
	 * @since 6.5.0
	 */
	$chooseButton.on( 'click', function () {
		var $el = $( this );

		// Create the media frame.
		frame = wp.media( {
			button: {
				// Set the text of the button.
				text: $el.data( 'update' ),

				// Don't close, we might need to crop.
				close: false,
			},
			states: [
				new wp.media.controller.Library( {
					title: $el.data( 'choose-text' ),
					library: wp.media.query( { type: 'image' } ),
					date: false,
					suggestedWidth: $el.data( 'size' ),
					suggestedHeight: $el.data( 'size' ),
				} ),
				new wp.media.controller.SiteIconCropper( {
					control: {
						params: {
							width: $el.data( 'size' ),
							height: $el.data( 'size' ),
						},
					},
					imgSelectOptions: calculateImageSelectOptions,
				} ),
			],
		} );

		frame.on( 'cropped', function ( attachment ) {
			$hiddenDataField.val( attachment.id );
			switchToUpdate( attachment );
			frame.close();

			// Start over with a frame that is so fresh and so clean clean.
			frame = null;
		} );

		// When an image is selected, run a callback.
		frame.on( 'select', function () {
			// Grab the selected attachment.
			var attachment = frame.state().get( 'selection' ).first();

			if (
				attachment.attributes.height === $el.data( 'size' ) &&
				$el.data( 'size' ) === attachment.attributes.width
			) {
				switchToUpdate( attachment.attributes );
				frame.close();

				// Set the value of the hidden input to the attachment id.
				$hiddenDataField.val( attachment.id );
			} else {
				frame.setState( 'cropper' );
			}
		} );

		frame.open();
	} );

	/**
	 * Update the UI when a site icon is selected.
	 *
	 * @since 6.5.0
	 *
	 * @param {array} attributes The attributes for the attachment.
	 */
	function switchToUpdate( attributes ) {
		var i18nAppAlternativeString, i18nBrowserAlternativeString;

		if ( attributes.alt ) {
			i18nAppAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image alt text. */
				wp.i18n.__( 'App icon preview: Current image: %s' ),
				attributes.alt
			);
			i18nBrowserAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image alt text. */
				wp.i18n.__( 'Browser icon preview: Current image: %s' ),
				attributes.alt
			);
		} else {
			i18nAppAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image filename. */
				wp.i18n.__(
					'App icon preview: The current image has no alternative text. The file name is: %s'
				),
				attributes.filename
			);
			i18nBrowserAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image filename. */
				wp.i18n.__(
					'Browser icon preview: The current image has no alternative text. The file name is: %s'
				),
				attributes.filename
			);
		}

		// Set site-icon-img src and alternative text to app icon preview.
		$appIconPreview.attr( {
			src: attributes.url,
			alt: i18nAppAlternativeString,
		} );

		// Set site-icon-img src and alternative text to browser preview.
		$browserIconPreview.attr( {
			src: attributes.url,
			alt: i18nBrowserAlternativeString,
		} );

		// Remove hidden class from icon preview div and remove button.
		$iconPreview.removeClass( 'hidden' );
		$removeButton.removeClass( 'hidden' );

		// Set the global CSS variable for --site-icon-url to the selected image URL.
		document.documentElement.style.setProperty(
			'--site-icon-url',
			'url(' + attributes.url + ')'
		);

		// If the choose button is not in the update state, swap the classes.
		if ( $chooseButton.attr( 'data-state' ) !== '1' ) {
			$chooseButton.attr( {
				class: $chooseButton.attr( 'data-alt-classes' ),
				'data-alt-classes': $chooseButton.attr( 'class' ),
				'data-state': '1',
			} );
		}

		// Swap the text of the choose button.
		$chooseButton.text( $chooseButton.attr( 'data-update-text' ) );
	}

	/**
	 * Handles the click event of the remove button.
	 *
	 * @since 6.5.0
	 */
	$removeButton.on( 'click', function () {
		$hiddenDataField.val( 'false' );
		$( this ).toggleClass( 'hidden' );
		$iconPreview.toggleClass( 'hidden' );
		$browserIconPreview.attr( {
			src: '',
			alt: '',
		} );
		$appIconPreview.attr( {
			src: '',
			alt: '',
		} );

		/**
		 * Resets state to the button, for correct visual style and state.
		 * Updates the text of the button.
		 * Sets focus state to the button.
		 */
		$chooseButton
			.attr( {
				class: $chooseButton.attr( 'data-alt-classes' ),
				'data-alt-classes': $chooseButton.attr( 'class' ),
				'data-state': '',
			} )
			.text( $chooseButton.attr( 'data-choose-text' ) )
			.trigger( 'focus' );
	} );
} )( jQuery );
Path: home/player95/public_html/wp-admin/js
  • [D] widgets
  • [F] accordion.js
  • [F] accordion.min.js
  • [F] application-passwords.js
  • [F] application-passwords.min.js
  • [F] auth-app.js
  • [F] auth-app.min.js
  • [F] code-editor.js
  • [F] code-editor.min.js
  • [F] color-picker.js
  • [F] color-picker.min.js
  • [F] comment.js
  • [F] comment.min.js
  • [F] common.js
  • [F] common.min.js
  • [F] custom-background.js
  • [F] custom-background.min.js
  • [F] custom-header.js
  • [F] customize-controls.js
  • [F] customize-controls.min.js
  • [F] customize-nav-menus.js
  • [F] customize-nav-menus.min.js
  • [F] customize-widgets.js
  • [F] customize-widgets.min.js
  • [F] dashboard.js
  • [F] dashboard.min.js
  • [F] edit-comments.js
  • [F] edit-comments.min.js
  • [F] editor-expand.js
  • [F] editor-expand.min.js
  • [F] editor.js
  • [F] editor.min.js
  • [F] farbtastic.js
  • [F] gallery.js
  • [F] gallery.min.js
  • [F] image-edit.js
  • [F] image-edit.min.js
  • [F] inline-edit-post.js
  • [F] inline-edit-post.min.js
  • [F] inline-edit-tax.js
  • [F] inline-edit-tax.min.js
  • [F] iris.min.js
  • [F] language-chooser.js
  • [F] language-chooser.min.js
  • [F] link.js
  • [F] link.min.js
  • [F] media-gallery.js
  • [F] media-gallery.min.js
  • [F] media-upload.js
  • [F] media-upload.min.js
  • [F] media.js
  • [F] media.min.js
  • [F] nav-menu.js
  • [F] nav-menu.min.js
  • [F] password-strength-meter.js
  • [F] password-strength-meter.min.js
  • [F] password-toggle.js
  • [F] password-toggle.min.js
  • [F] plugin-install.js
  • [F] plugin-install.min.js
  • [F] post.js
  • [F] post.min.js
  • [F] postbox.js
  • [F] postbox.min.js
  • [F] privacy-tools.js
  • [F] privacy-tools.min.js
  • [F] revisions.js
  • [F] revisions.min.js
  • [F] set-post-thumbnail.js
  • [F] set-post-thumbnail.min.js
  • [F] site-health.js
  • [F] site-health.min.js
  • [F] site-icon.js
  • [F] site-icon.min.js
  • [F] svg-painter.js
  • [F] svg-painter.min.js
  • [F] tags-box.js
  • [F] tags-box.min.js
  • [F] tags-suggest.js
  • [F] tags-suggest.min.js
  • [F] tags.js
  • [F] tags.min.js
  • [F] theme-plugin-editor.js
  • [F] theme-plugin-editor.min.js
  • [F] theme.js
  • [F] theme.min.js
  • [F] updates.js
  • [F] updates.min.js
  • [F] user-profile.js
  • [F] user-profile.min.js
  • [F] user-suggest.js
  • [F] user-suggest.min.js
  • [F] widgets.js
  • [F] widgets.min.js
  • [F] word-count.js
  • [F] word-count.min.js
  • [F] xfn.js
  • [F] xfn.min.js
Page not found – mmsbee24
Skip to content

mmsbee24

  • Sample Page
  • Homepage
  • Error 404

Oops! That page can’t be found.

It looks like nothing was found at this location. Maybe try one of the links below or a search?

Random videos

Bringing stranger girl to my bedroom and fucked her pussy,hunter Asia
4 20:13
Bringing stranger girl to my bedroom and fucked her pussy,hunter Asia
Khwahish Private StripChat Show
17
Khwahish Private StripChat Show
fucking with Isabel,Jerk off with REAL GIRLS in sex video chat
0 17:27
fucking with Isabel,Jerk off with REAL GIRLS in sex video chat
Hot Ellie Sharma Quick Boob Flash and Teasing on Tango Live
1
Hot Ellie Sharma Quick Boob Flash and Teasing on Tango Live
Gunjan Aras-instagram Model & Gandi baat 4 fame
2
Gunjan Aras-instagram Model & Gandi baat 4 fame
Indian Milf ur_khwahishh pussy fingering, boobs pressing and Ass Showing
9
Indian Milf ur_khwahishh pussy fingering, boobs pressing and Ass Showing
Chubby babe riding
1
Chubby babe riding
Khwahish Hot Show Live Ass Slap
5
Khwahish Hot Show Live Ass Slap
Goddess Janisha Superb 121 Live Show
1
Goddess Janisha Superb 121 Live Show
Gandi Baat Anveshi Jain Flora Saini
2
Gandi Baat Anveshi Jain Flora Saini
Cute desi lady sexy navel and boobs in pink saree
8
Cute desi lady sexy navel and boobs in pink saree

Archives

  • November 2025

Categories

  • App Content
  • Big Boobs
  • Desi
  • StripChat
  • Tango
  • Uncategorized
All rights reserved. Powered by WP-Script.com
Registration is disabled.

Login to mmsbee24

Lost Password?

Reset Password

Enter the username or e-mail you used in your profile. A password reset link will be sent to you by email.


Loading...

Don't have an account? Sign up Already have an account? Login