Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-includes/js
NameTypeSizeActions
📁 .. Folder -
📄 admin-bar.js File 10547
Edit Download
📄 admin-bar.min.js File 3487
Edit Download
📄 api-request.js File 3324
Edit Download
📄 api-request.min.js File 1023
Edit Download
📄 autosave.js File 22476
Edit Download
📄 autosave.min.js File 5807
Edit Download
📄 backbone.js File 80390
Edit Download
📄 backbone.min.js File 24301
Edit Download
📄 clipboard.js File 26807
Edit Download
📄 clipboard.min.js File 9009
Edit Download
📁 codemirror Folder -
📄 colorpicker.js File 29083
Edit Download
📄 colorpicker.min.js File 16498
Edit Download
📄 comment-reply.js File 12513
Edit Download
📄 comment-reply.min.js File 3026
Edit Download
📁 crop Folder -
📄 customize-base.js File 25822
Edit Download
📄 customize-base.min.js File 7852
Edit Download
📄 customize-loader.js File 7903
Edit Download
📄 customize-loader.min.js File 3551
Edit Download
📄 customize-models.js File 6821
Edit Download
📄 customize-models.min.js File 3681
Edit Download
📄 customize-preview-nav-menus.js File 15024
Edit Download
📄 customize-preview-nav-menus.min.js File 5033
Edit Download
📄 customize-preview-widgets.js File 23253
Edit Download
📄 customize-preview-widgets.min.js File 7820
Edit Download
📄 customize-preview.js File 27960
Edit Download
📄 customize-preview.min.js File 10704
Edit Download
📄 customize-selective-refresh.js File 33335
Edit Download
📄 customize-selective-refresh.min.js File 10693
Edit Download
📄 customize-views.js File 5065
Edit Download
📄 customize-views.min.js File 2451
Edit Download
📁 dist Folder -
📄 heartbeat.js File 24052
Edit Download
📄 heartbeat.min.js File 5947
Edit Download
📄 hoverIntent.js File 7225
Edit Download
📄 hoverIntent.min.js File 1499
Edit Download
📄 hoverintent-js.min.js File 1718
Edit Download
📄 imagesloaded.min.js File 5520
Edit Download
📁 imgareaselect Folder -
📁 jcrop Folder -
📁 jquery Folder -
📄 json2.js File 18422
Edit Download
📄 json2.min.js File 3143
Edit Download
📄 masonry.min.js File 24138
Edit Download
📄 mce-view.js File 25849
Edit Download
📄 mce-view.min.js File 9770
Edit Download
📄 media-audiovideo.js File 24819
Edit Download
📄 media-audiovideo.min.js File 12052
Edit Download
📄 media-editor.js File 29119
Edit Download
📄 media-editor.min.js File 10885
Edit Download
📄 media-grid.js File 26651
Edit Download
📄 media-grid.min.js File 13258
Edit Download
📄 media-models.js File 43604
Edit Download
📄 media-models.min.js File 13284
Edit Download
📄 media-views.js File 273321
Edit Download
📄 media-views.min.js File 110712
Edit Download
📁 mediaelement Folder -
📁 plupload Folder -
📄 quicktags.js File 22601
Edit Download
📄 quicktags.min.js File 11132
Edit Download
📄 shortcode.js File 10758
Edit Download
📄 shortcode.min.js File 2643
Edit Download
📄 swfobject.js File 10231
Edit Download
📁 swfupload Folder -
📁 thickbox Folder -
📁 tinymce Folder -
📄 tw-sack.js File 4969
Edit Download
📄 tw-sack.min.js File 3288
Edit Download
📄 twemoji.js File 33459
Edit Download
📄 twemoji.min.js File 16312
Edit Download
📄 underscore.js File 68735
Edit Download
📄 underscore.min.js File 18905
Edit Download
📄 utils.js File 4665
Edit Download
📄 utils.min.js File 1864
Edit Download
📄 wp-ajax-response.js File 3903
Edit Download
📄 wp-ajax-response.min.js File 2571
Edit Download
📄 wp-api.js File 46983
Edit Download
📄 wp-api.min.js File 14682
Edit Download
📄 wp-auth-check.js File 4207
Edit Download
📄 wp-auth-check.min.js File 1658
Edit Download
📄 wp-backbone.js File 15241
Edit Download
📄 wp-backbone.min.js File 3039
Edit Download
📄 wp-custom-header.js File 10465
Edit Download
📄 wp-custom-header.min.js File 4442
Edit Download
📄 wp-embed-template.js File 6779
Edit Download
📄 wp-embed-template.min.js File 3174
Edit Download
📄 wp-embed.js File 3214
Edit Download
📄 wp-embed.min.js File 1251
Edit Download
📄 wp-emoji-loader.js File 14009
Edit Download
📄 wp-emoji-loader.min.js File 3088
Edit Download
📄 wp-emoji-release.min.js File 19251
Edit Download
📄 wp-emoji.js File 8969
Edit Download
📄 wp-emoji.min.js File 2890
Edit Download
📄 wp-list-revisions.js File 970
Edit Download
📄 wp-list-revisions.min.js File 597
Edit Download
📄 wp-lists.js File 25315
Edit Download
📄 wp-lists.min.js File 7521
Edit Download
📄 wp-pointer.js File 10233
Edit Download
📄 wp-pointer.min.js File 3621
Edit Download
📄 wp-sanitize.js File 1341
Edit Download
📄 wp-sanitize.min.js File 458
Edit Download
📄 wp-util.js File 4679
Edit Download
📄 wp-util.min.js File 1426
Edit Download
📄 wpdialog.js File 569
Edit Download
📄 wpdialog.min.js File 281
Edit Download
📄 wplink.js File 21240
Edit Download
📄 wplink.min.js File 11317
Edit Download
📄 zxcvbn-async.js File 821
Edit Download
📄 zxcvbn-async.min.js File 351
Edit Download
📄 zxcvbn.min.js File 822237
Edit Download

View File: customize-loader.js

/**
 * @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 overlaid 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 );