home
/
aioutajg
/
unblockedgames247.com
/
wp-admin
/
js
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] widgets
N/A
accordion.js
2.86 KB
Rename
Delete
accordion.min.js
758 bytes
Rename
Delete
application-passwords.js
6.24 KB
Rename
Delete
application-passwords.min.js
2.95 KB
Rename
Delete
auth-app.js
5.66 KB
Rename
Delete
auth-app.min.js
2.04 KB
Rename
Delete
code-editor.js
11.32 KB
Rename
Delete
code-editor.min.js
3.01 KB
Rename
Delete
color-picker.js
9.54 KB
Rename
Delete
color-picker.min.js
3.40 KB
Rename
Delete
comment.js
2.85 KB
Rename
Delete
comment.min.js
1.28 KB
Rename
Delete
common.js
61.09 KB
Rename
Delete
common.min.js
23.07 KB
Rename
Delete
custom-background.js
3.35 KB
Rename
Delete
custom-background.min.js
1.18 KB
Rename
Delete
custom-header.js
1.98 KB
Rename
Delete
customize-controls.js
287.36 KB
Rename
Delete
customize-controls.min.js
109.14 KB
Rename
Delete
customize-nav-menus.js
110.92 KB
Rename
Delete
customize-nav-menus.min.js
46.89 KB
Rename
Delete
customize-widgets.js
70.05 KB
Rename
Delete
customize-widgets.min.js
27.41 KB
Rename
Delete
dashboard.js
27.02 KB
Rename
Delete
dashboard.min.js
8.65 KB
Rename
Delete
edit-comments.js
37.12 KB
Rename
Delete
edit-comments.min.js
15.13 KB
Rename
Delete
editor-expand.js
41.61 KB
Rename
Delete
editor-expand.min.js
13.14 KB
Rename
Delete
editor.js
43.98 KB
Rename
Delete
editor.min.js
12.76 KB
Rename
Delete
farbtastic.js
7.67 KB
Rename
Delete
gallery.js
5.41 KB
Rename
Delete
gallery.min.js
3.65 KB
Rename
Delete
image-edit.js
39.98 KB
Rename
Delete
image-edit.min.js
15.15 KB
Rename
Delete
inline-edit-post.js
20.17 KB
Rename
Delete
inline-edit-post.min.js
9.41 KB
Rename
Delete
inline-edit-tax.js
7.61 KB
Rename
Delete
inline-edit-tax.min.js
2.93 KB
Rename
Delete
iris.min.js
23.09 KB
Rename
Delete
language-chooser.js
890 bytes
Rename
Delete
language-chooser.min.js
423 bytes
Rename
Delete
link.js
3.89 KB
Rename
Delete
link.min.js
1.70 KB
Rename
Delete
media-gallery.js
1.27 KB
Rename
Delete
media-gallery.min.js
611 bytes
Rename
Delete
media-upload.js
3.38 KB
Rename
Delete
media-upload.min.js
1.13 KB
Rename
Delete
media.js
6.61 KB
Rename
Delete
media.min.js
2.38 KB
Rename
Delete
nav-menu.js
60.44 KB
Rename
Delete
nav-menu.min.js
29.77 KB
Rename
Delete
password-strength-meter.js
4.14 KB
Rename
Delete
password-strength-meter.min.js
1.10 KB
Rename
Delete
password-toggle.js
1.31 KB
Rename
Delete
password-toggle.min.js
847 bytes
Rename
Delete
plugin-install.js
6.92 KB
Rename
Delete
plugin-install.min.js
2.35 KB
Rename
Delete
post.js
38.68 KB
Rename
Delete
post.min.js
18.40 KB
Rename
Delete
postbox.js
18.49 KB
Rename
Delete
postbox.min.js
6.60 KB
Rename
Delete
privacy-tools.js
10.67 KB
Rename
Delete
privacy-tools.min.js
5.03 KB
Rename
Delete
revisions.js
33.92 KB
Rename
Delete
revisions.min.js
17.97 KB
Rename
Delete
set-post-thumbnail.js
876 bytes
Rename
Delete
set-post-thumbnail.min.js
620 bytes
Rename
Delete
site-health.js
13.15 KB
Rename
Delete
site-health.min.js
6.13 KB
Rename
Delete
site-icon.js
6.10 KB
Rename
Delete
site-icon.min.js
2.20 KB
Rename
Delete
svg-painter.js
3.20 KB
Rename
Delete
svg-painter.min.js
1.53 KB
Rename
Delete
tags-box.js
10.88 KB
Rename
Delete
tags-box.min.js
3.00 KB
Rename
Delete
tags-suggest.js
5.64 KB
Rename
Delete
tags-suggest.min.js
2.22 KB
Rename
Delete
tags.js
4.85 KB
Rename
Delete
tags.min.js
2.04 KB
Rename
Delete
theme-plugin-editor.js
24.77 KB
Rename
Delete
theme-plugin-editor.min.js
11.43 KB
Rename
Delete
theme.js
54.67 KB
Rename
Delete
theme.min.js
26.42 KB
Rename
Delete
updates.js
109.33 KB
Rename
Delete
updates.min.js
47.27 KB
Rename
Delete
user-profile.js
15.00 KB
Rename
Delete
user-profile.min.js
6.70 KB
Rename
Delete
user-suggest.js
2.25 KB
Rename
Delete
user-suggest.min.js
676 bytes
Rename
Delete
widgets.js
22.56 KB
Rename
Delete
widgets.min.js
12.31 KB
Rename
Delete
word-count.js
7.52 KB
Rename
Delete
word-count.min.js
1.49 KB
Rename
Delete
xfn.js
740 bytes
Rename
Delete
xfn.min.js
458 bytes
Rename
Delete
/** * @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' ) ); }); } });
Save