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: wp-embed-template.js

/**
 * @output wp-includes/js/wp-embed-template.js
 */
(function ( window, document ) {
	'use strict';

	var supportedBrowser = ( document.querySelector && window.addEventListener ),
		loaded = false,
		secret,
		secretTimeout,
		resizing;

	function sendEmbedMessage( message, value ) {
		window.parent.postMessage( {
			message: message,
			value: value,
			secret: secret
		}, '*' );
	}

	/**
	 * Send the height message to the parent window.
	 */
	function sendHeightMessage() {
		sendEmbedMessage( 'height', Math.ceil( document.body.getBoundingClientRect().height ) );
	}

	function onLoad() {
		if ( loaded ) {
			return;
		}
		loaded = true;

		var share_dialog = document.querySelector( '.wp-embed-share-dialog' ),
			share_dialog_open = document.querySelector( '.wp-embed-share-dialog-open' ),
			share_dialog_close = document.querySelector( '.wp-embed-share-dialog-close' ),
			share_input = document.querySelectorAll( '.wp-embed-share-input' ),
			share_dialog_tabs = document.querySelectorAll( '.wp-embed-share-tab-button button' ),
			featured_image = document.querySelector( '.wp-embed-featured-image img' ),
			i;

		if ( share_input ) {
			for ( i = 0; i < share_input.length; i++ ) {
				share_input[ i ].addEventListener( 'click', function ( e ) {
					e.target.select();
				} );
			}
		}

		function openSharingDialog() {
			share_dialog.className = share_dialog.className.replace( 'hidden', '' );
			// Initial focus should go on the currently selected tab in the dialog.
			document.querySelector( '.wp-embed-share-tab-button [aria-selected="true"]' ).focus();
		}

		function closeSharingDialog() {
			share_dialog.className += ' hidden';
			document.querySelector( '.wp-embed-share-dialog-open' ).focus();
		}

		if ( share_dialog_open ) {
			share_dialog_open.addEventListener( 'click', function () {
				openSharingDialog();
			} );
		}

		if ( share_dialog_close ) {
			share_dialog_close.addEventListener( 'click', function () {
				closeSharingDialog();
			} );
		}

		function shareClickHandler( e ) {
			var currentTab = document.querySelector( '.wp-embed-share-tab-button [aria-selected="true"]' );
			currentTab.setAttribute( 'aria-selected', 'false' );
			document.querySelector( '#' + currentTab.getAttribute( 'aria-controls' ) ).setAttribute( 'aria-hidden', 'true' );

			e.target.setAttribute( 'aria-selected', 'true' );
			document.querySelector( '#' + e.target.getAttribute( 'aria-controls' ) ).setAttribute( 'aria-hidden', 'false' );
		}

		function shareKeyHandler( e ) {
			var target = e.target,
				previousSibling = target.parentElement.previousElementSibling,
				nextSibling = target.parentElement.nextElementSibling,
				newTab, newTabChild;

			if ( 37 === e.keyCode ) {
				newTab = previousSibling;
			} else if ( 39 === e.keyCode ) {
				newTab = nextSibling;
			} else {
				return false;
			}

			if ( 'rtl' === document.documentElement.getAttribute( 'dir' ) ) {
				newTab = ( newTab === previousSibling ) ? nextSibling : previousSibling;
			}

			if ( newTab ) {
				newTabChild = newTab.firstElementChild;

				target.setAttribute( 'tabindex', '-1' );
				target.setAttribute( 'aria-selected', false );
				document.querySelector( '#' + target.getAttribute( 'aria-controls' ) ).setAttribute( 'aria-hidden', 'true' );

				newTabChild.setAttribute( 'tabindex', '0' );
				newTabChild.setAttribute( 'aria-selected', 'true' );
				newTabChild.focus();
				document.querySelector( '#' + newTabChild.getAttribute( 'aria-controls' ) ).setAttribute( 'aria-hidden', 'false' );
			}
		}

		if ( share_dialog_tabs ) {
			for ( i = 0; i < share_dialog_tabs.length; i++ ) {
				share_dialog_tabs[ i ].addEventListener( 'click', shareClickHandler );

				share_dialog_tabs[ i ].addEventListener( 'keydown', shareKeyHandler );
			}
		}

		document.addEventListener( 'keydown', function ( e ) {
			if ( 27 === e.keyCode && -1 === share_dialog.className.indexOf( 'hidden' ) ) {
				closeSharingDialog();
			} else if ( 9 === e.keyCode ) {
				constrainTabbing( e );
			}
		}, false );

		function constrainTabbing( e ) {
			// Need to re-get the selected tab each time.
			var firstFocusable = document.querySelector( '.wp-embed-share-tab-button [aria-selected="true"]' );

			if ( share_dialog_close === e.target && ! e.shiftKey ) {
				firstFocusable.focus();
				e.preventDefault();
			} else if ( firstFocusable === e.target && e.shiftKey ) {
				share_dialog_close.focus();
				e.preventDefault();
			}
		}

		if ( window.self === window.top ) {
			return;
		}

		// Send this document's height to the parent (embedding) site.
		sendHeightMessage();

		// Send the document's height again after the featured image has been loaded.
		if ( featured_image ) {
			featured_image.addEventListener( 'load', sendHeightMessage );
		}

		/**
		 * Detect clicks to external (_top) links.
		 */
		function linkClickHandler( e ) {
			var target = e.target,
				href;
			if ( target.hasAttribute( 'href' ) ) {
				href = target.getAttribute( 'href' );
			} else {
				href = target.parentElement.getAttribute( 'href' );
			}

			// Only catch clicks from the primary mouse button, without any modifiers.
			if ( event.altKey || event.ctrlKey || event.metaKey || event.shiftKey ) {
				return;
			}

			// Send link target to the parent (embedding) site.
			if ( href ) {
				sendEmbedMessage( 'link', href );
				e.preventDefault();
			}
		}

		document.addEventListener( 'click', linkClickHandler );
	}

	/**
	 * Iframe resize handler.
	 */
	function onResize() {
		if ( window.self === window.top ) {
			return;
		}

		clearTimeout( resizing );

		resizing = setTimeout( sendHeightMessage, 100 );
	}

	/**
	 * Message handler.
	 *
	 * @param {MessageEvent} event
	 */
	function onMessage( event ) {
		var data = event.data;

		if ( ! data ) {
			return;
		}

		if ( event.source !== window.parent ) {
			return;
		}

		if ( ! ( data.secret || data.message ) ) {
			return;
		}

		if ( data.secret !== secret ) {
			return;
		}

		if ( 'ready' === data.message ) {
			sendHeightMessage();
		}
	}

	/**
	 * Re-get the secret when it was added later on.
	 */
	function getSecret() {
		if ( window.self === window.top || !!secret ) {
			return;
		}

		secret = window.location.hash.replace( /.*secret=([\d\w]{10}).*/, '$1' );

		clearTimeout( secretTimeout );

		secretTimeout = setTimeout( function () {
			getSecret();
		}, 100 );
	}

	if ( supportedBrowser ) {
		getSecret();
		document.documentElement.className = document.documentElement.className.replace( /\bno-js\b/, '' ) + ' js';
		document.addEventListener( 'DOMContentLoaded', onLoad, false );
		window.addEventListener( 'load', onLoad, false );
		window.addEventListener( 'resize', onResize, false );
		window.addEventListener( 'message', onMessage, false );
	}
})( window, document );