X7ROOT File Manager
Current Path:
/home/notabjze/shoemountainbay.com/wp-admin/js
home
/
notabjze
/
shoemountainbay.com
/
wp-admin
/
js
/
ðŸ“
..
📄
accordion.js
(2.87 KB)
📄
accordion.min.js
(849 B)
📄
application-passwords.js
(6.24 KB)
📄
application-passwords.min.js
(2.95 KB)
📄
auth-app.js
(5.66 KB)
📄
auth-app.min.js
(2.04 KB)
📄
code-editor.js
(11.32 KB)
📄
code-editor.min.js
(3.01 KB)
📄
color-picker.js
(9.54 KB)
📄
color-picker.min.js
(3.4 KB)
📄
comment.js
(2.84 KB)
📄
comment.min.js
(1.28 KB)
📄
common.js
(58.04 KB)
📄
common.min.js
(21.57 KB)
📄
custom-background.js
(3.35 KB)
📄
custom-background.min.js
(1.18 KB)
📄
custom-header.js
(1.98 KB)
📄
customize-controls.js
(286.46 KB)
📄
customize-controls.min.js
(108.97 KB)
📄
customize-nav-menus.js
(105.91 KB)
📄
customize-nav-menus.min.js
(44.52 KB)
📄
customize-widgets.js
(70.02 KB)
📄
customize-widgets.min.js
(27.4 KB)
📄
dashboard.js
(26.92 KB)
📄
dashboard.min.js
(8.59 KB)
📄
edit-comments.js
(36.65 KB)
📄
edit-comments.min.js
(14.99 KB)
📄
editor-expand.js
(41.61 KB)
📄
editor-expand.min.js
(13.14 KB)
📄
editor.js
(44.25 KB)
📄
editor.min.js
(12.87 KB)
📄
farbtastic.js
(7.67 KB)
📄
gallery.js
(5.41 KB)
📄
gallery.min.js
(3.65 KB)
📄
image-edit.js
(38.21 KB)
📄
image-edit.min.js
(14.3 KB)
📄
inline-edit-post.js
(17.75 KB)
📄
inline-edit-post.min.js
(8.22 KB)
📄
inline-edit-tax.js
(7.61 KB)
📄
inline-edit-tax.min.js
(2.93 KB)
📄
iris.min.js
(23.09 KB)
📄
language-chooser.js
(890 B)
📄
language-chooser.min.js
(423 B)
📄
link.js
(3.89 KB)
📄
link.min.js
(1.7 KB)
📄
media-gallery.js
(1.27 KB)
📄
media-gallery.min.js
(611 B)
📄
media-upload.js
(3.38 KB)
📄
media-upload.min.js
(1.13 KB)
📄
media.js
(6.39 KB)
📄
media.min.js
(2.36 KB)
📄
nav-menu.js
(50.09 KB)
📄
nav-menu.min.js
(25.35 KB)
📄
password-strength-meter.js
(4.14 KB)
📄
password-strength-meter.min.js
(1.1 KB)
📄
password-toggle.js
(1.31 KB)
📄
password-toggle.min.js
(847 B)
📄
plugin-install.js
(6.92 KB)
📄
plugin-install.min.js
(2.35 KB)
📄
post.js
(39.18 KB)
📄
post.min.js
(18.61 KB)
📄
postbox.js
(18.4 KB)
📄
postbox.min.js
(6.55 KB)
📄
privacy-tools.js
(10.65 KB)
📄
privacy-tools.min.js
(5.02 KB)
📄
revisions.js
(33.13 KB)
📄
revisions.min.js
(17.45 KB)
📄
set-post-thumbnail.js
(876 B)
📄
set-post-thumbnail.min.js
(620 B)
📄
site-health.js
(13.28 KB)
📄
site-health.min.js
(6.15 KB)
📄
svg-painter.js
(5.39 KB)
📄
svg-painter.min.js
(2.33 KB)
📄
tags-box.js
(10.88 KB)
📄
tags-box.min.js
(3 KB)
📄
tags-suggest.js
(5.53 KB)
📄
tags-suggest.min.js
(2.19 KB)
📄
tags.js
(4.77 KB)
📄
tags.min.js
(1.96 KB)
📄
theme-plugin-editor.js
(24.79 KB)
📄
theme-plugin-editor.min.js
(11.46 KB)
📄
theme.js
(54.67 KB)
📄
theme.min.js
(26.42 KB)
📄
updates.js
(93.28 KB)
📄
updates.min.js
(40.64 KB)
📄
user-profile.js
(13.78 KB)
📄
user-profile.min.js
(6.13 KB)
📄
user-suggest.js
(2.25 KB)
📄
user-suggest.min.js
(676 B)
ðŸ“
widgets
📄
widgets.js
(22.56 KB)
📄
widgets.min.js
(12.31 KB)
📄
word-count.js
(7.52 KB)
📄
word-count.min.js
(1.49 KB)
📄
xfn.js
(740 B)
📄
xfn.min.js
(458 B)
Editing: plugin-install.js
/** * @file Functionality for the plugin install screens. * * @output wp-admin/js/plugin-install.js */ /* global tb_click, tb_remove, tb_position */ jQuery( function( $ ) { var tbWindow, $iframeBody, $tabbables, $firstTabbable, $lastTabbable, $focusedBefore = $(), $uploadViewToggle = $( '.upload-view-toggle' ), $wrap = $ ( '.wrap' ), $body = $( document.body ); window.tb_position = function() { var width = $( window ).width(), H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ), W = ( 792 < width ) ? 772 : width - 20; tbWindow = $( '#TB_window' ); if ( tbWindow.length ) { tbWindow.width( W ).height( H ); $( '#TB_iframeContent' ).width( W ).height( H ); tbWindow.css({ 'margin-left': '-' + parseInt( ( W / 2 ), 10 ) + 'px' }); if ( typeof document.body.style.maxWidth !== 'undefined' ) { tbWindow.css({ 'top': '30px', 'margin-top': '0' }); } } return $( 'a.thickbox' ).each( function() { var href = $( this ).attr( 'href' ); if ( ! href ) { return; } href = href.replace( /&width=[0-9]+/g, '' ); href = href.replace( /&height=[0-9]+/g, '' ); $(this).attr( 'href', href + '&width=' + W + '&height=' + ( H ) ); }); }; $( window ).on( 'resize', function() { tb_position(); }); /* * Custom events: when a Thickbox iframe has loaded and when the Thickbox * modal gets removed from the DOM. */ $body .on( 'thickbox:iframe:loaded', tbWindow, function() { /* * Return if it's not the modal with the plugin details iframe. Other * thickbox instances might want to load an iframe with content from * an external domain. Avoid to access the iframe contents when we're * not sure the iframe loads from the same domain. */ if ( ! tbWindow.hasClass( 'plugin-details-modal' ) ) { return; } iframeLoaded(); }) .on( 'thickbox:removed', function() { // Set focus back to the element that opened the modal dialog. // Note: IE 8 would need this wrapped in a fake setTimeout `0`. $focusedBefore.trigger( 'focus' ); }); function iframeLoaded() { var $iframe = tbWindow.find( '#TB_iframeContent' ); // Get the iframe body. $iframeBody = $iframe.contents().find( 'body' ); // Get the tabbable elements and handle the keydown event on first load. handleTabbables(); // Set initial focus on the "Close" button. $firstTabbable.trigger( 'focus' ); /* * When the "Install" button is disabled (e.g. the Plugin is already installed) * then we can't predict where the last focusable element is. We need to get * the tabbable elements and handle the keydown event again and again, * each time the active tab panel changes. */ $( '#plugin-information-tabs a', $iframeBody ).on( 'click', function() { handleTabbables(); }); // Close the modal when pressing Escape. $iframeBody.on( 'keydown', function( event ) { if ( 27 !== event.which ) { return; } tb_remove(); }); } /* * Get the tabbable elements and detach/attach the keydown event. * Called after the iframe has fully loaded so we have all the elements we need. * Called again each time a Tab gets clicked. * @todo Consider to implement a WordPress general utility for this and don't use jQuery UI. */ function handleTabbables() { var $firstAndLast; // Get all the tabbable elements. $tabbables = $( ':tabbable', $iframeBody ); // Our first tabbable element is always the "Close" button. $firstTabbable = tbWindow.find( '#TB_closeWindowButton' ); // Get the last tabbable element. $lastTabbable = $tabbables.last(); // Make a jQuery collection. $firstAndLast = $firstTabbable.add( $lastTabbable ); // Detach any previously attached keydown event. $firstAndLast.off( 'keydown.wp-plugin-details' ); // Attach again the keydown event on the first and last focusable elements. $firstAndLast.on( 'keydown.wp-plugin-details', function( event ) { constrainTabbing( event ); }); } // Constrain tabbing within the plugin modal dialog. function constrainTabbing( event ) { if ( 9 !== event.which ) { return; } if ( $lastTabbable[0] === event.target && ! event.shiftKey ) { event.preventDefault(); $firstTabbable.trigger( 'focus' ); } else if ( $firstTabbable[0] === event.target && event.shiftKey ) { event.preventDefault(); $lastTabbable.trigger( 'focus' ); } } /* * Open the Plugin details modal. The event is delegated to get also the links * in the plugins search tab, after the Ajax search rebuilds the HTML. It's * delegated on the closest ancestor and not on the body to avoid conflicts * with other handlers, see Trac ticket #43082. */ $( '.wrap' ).on( 'click', '.thickbox.open-plugin-details-modal', function( e ) { // The `data-title` attribute is used only in the Plugin screens. var title = $( this ).data( 'title' ) ? wp.i18n.sprintf( // translators: %s: Plugin name. wp.i18n.__( 'Plugin: %s' ), $( this ).data( 'title' ) ) : wp.i18n.__( 'Plugin details' ); e.preventDefault(); e.stopPropagation(); // Store the element that has focus before opening the modal dialog, i.e. the control which opens it. $focusedBefore = $( this ); tb_click.call(this); // Set ARIA role, ARIA label, and add a CSS class. tbWindow .attr({ 'role': 'dialog', 'aria-label': wp.i18n.__( 'Plugin details' ) }) .addClass( 'plugin-details-modal' ); // Set title attribute on the iframe. tbWindow.find( '#TB_iframeContent' ).attr( 'title', title ); }); /* Plugin install related JS */ $( '#plugin-information-tabs a' ).on( 'click', function( event ) { var tab = $( this ).attr( 'name' ); event.preventDefault(); // Flip the tab. $( '#plugin-information-tabs a.current' ).removeClass( 'current' ); $( this ).addClass( 'current' ); // Only show the fyi box in the description section, on smaller screen, // where it's otherwise always displayed at the top. if ( 'description' !== tab && $( window ).width() < 772 ) { $( '#plugin-information-content' ).find( '.fyi' ).hide(); } else { $( '#plugin-information-content' ).find( '.fyi' ).show(); } // Flip the content. $( '#section-holder div.section' ).hide(); // Hide 'em all. $( '#section-' + tab ).show(); }); /* * When a user presses the "Upload Plugin" button, show the upload form in place * rather than sending them to the devoted upload plugin page. * The `?tab=upload` page still exists for no-js support and for plugins that * might access it directly. When we're in this page, let the link behave * like a link. Otherwise we're in the normal plugin installer pages and the * link should behave like a toggle button. */ if ( ! $wrap.hasClass( 'plugin-install-tab-upload' ) ) { $uploadViewToggle .attr({ role: 'button', 'aria-expanded': 'false' }) .on( 'click', function( event ) { event.preventDefault(); $body.toggleClass( 'show-upload-view' ); $uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) ); }); } });
Upload File
Create Folder