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-auth-check.js

/**
 * Interim login dialog.
 *
 * @output wp-includes/js/wp-auth-check.js
 */

( function( $ ) {
	var wrap,
		tempHidden,
		tempHiddenTimeout;

	/**
	 * Shows the authentication form popup.
	 *
	 * @since 3.6.0
	 * @private
	 */
	function show() {
		var parent = $( '#wp-auth-check' ),
			form = $( '#wp-auth-check-form' ),
			noframe = wrap.find( '.wp-auth-fallback-expired' ),
			frame, loaded = false;

		if ( form.length ) {
			// Add unload confirmation to counter (frame-busting) JS redirects.
			$( window ).on( 'beforeunload.wp-auth-check', function( event ) {
				event.originalEvent.returnValue = window.wp.i18n.__( 'Your session has expired. You can log in again from this page or go to the login page.' );
			});

			frame = $( '<iframe id="wp-auth-check-frame" frameborder="0">' ).attr( 'title', noframe.text() );
			frame.on( 'load', function() {
				var height, body;

				loaded = true;
				// Remove the spinner to avoid unnecessary CPU/GPU usage.
				form.removeClass( 'loading' );

				try {
					body = $( this ).contents().find( 'body' );
					height = body.height();
				} catch( er ) {
					wrap.addClass( 'fallback' );
					parent.css( 'max-height', '' );
					form.remove();
					noframe.focus();
					return;
				}

				if ( height ) {
					if ( body && body.hasClass( 'interim-login-success' ) ) {
						hide();
					} else {
						parent.css( 'max-height', height + 40 + 'px' );
					}
				} else if ( ! body || ! body.length ) {
					// Catch "silent" iframe origin exceptions in WebKit
					// after another page is loaded in the iframe.
					wrap.addClass( 'fallback' );
					parent.css( 'max-height', '' );
					form.remove();
					noframe.focus();
				}
			}).attr( 'src', form.data( 'src' ) );

			form.append( frame );
		}

		$( 'body' ).addClass( 'modal-open' );
		wrap.removeClass( 'hidden' );

		if ( frame ) {
			frame.focus();
			/*
			 * WebKit doesn't throw an error if the iframe fails to load
			 * because of "X-Frame-Options: DENY" header.
			 * Wait for 10 seconds and switch to the fallback text.
			 */
			setTimeout( function() {
				if ( ! loaded ) {
					wrap.addClass( 'fallback' );
					form.remove();
					noframe.focus();
				}
			}, 10000 );
		} else {
			noframe.focus();
		}
	}

	/**
	 * Hides the authentication form popup.
	 *
	 * @since 3.6.0
	 * @private
	 */
	function hide() {
		var adminpage = window.adminpage,
			wp        = window.wp;

		$( window ).off( 'beforeunload.wp-auth-check' );

		// When on the Edit Post screen, speed up heartbeat
		// after the user logs in to quickly refresh nonces.
		if ( ( adminpage === 'post-php' || adminpage === 'post-new-php' ) && wp && wp.heartbeat ) {
			wp.heartbeat.connectNow();
		}

		wrap.fadeOut( 200, function() {
			wrap.addClass( 'hidden' ).css( 'display', '' );
			$( '#wp-auth-check-frame' ).remove();
			$( 'body' ).removeClass( 'modal-open' );
		});
	}

	/**
	 * Set or reset the tempHidden variable used to pause showing of the modal
	 * after a user closes it without logging in.
	 *
	 * @since 5.5.0
	 * @private
	 */
	function setShowTimeout() {
		tempHidden = true;
		window.clearTimeout( tempHiddenTimeout );
		tempHiddenTimeout = window.setTimeout(
			function() {
				tempHidden = false;
			},
			300000 // 5 min.
		);
	}

	/**
	 * Binds to the Heartbeat Tick event.
	 *
	 * - Shows the authentication form popup if user is not logged in.
	 * - Hides the authentication form popup if it is already visible and user is
	 *   logged in.
	 *
	 * @ignore
	 *
	 * @since 3.6.0
	 *
	 * @param {Object} e The heartbeat-tick event that has been triggered.
	 * @param {Object} data Response data.
	 */
	$( function() {

		/**
		 * Hides the authentication form popup when the close icon is clicked.
		 *
		 * @ignore
		 *
		 * @since 3.6.0
		 */
		wrap = $( '#wp-auth-check-wrap' );
		wrap.find( '.wp-auth-check-close' ).on( 'click', function() {
			hide();
			setShowTimeout();
		});
	}).on( 'heartbeat-tick.wp-auth-check', function( e, data ) {
		if ( 'wp-auth-check' in data ) {
			if ( ! data['wp-auth-check'] && wrap.hasClass( 'hidden' ) && ! tempHidden ) {
				show();
			} else if ( data['wp-auth-check'] && ! wrap.hasClass( 'hidden' ) ) {
				hide();
			}
		}
	});

}(jQuery));