File Manager Lite
Dir:
/home/atomylvb/jarangomd.com/wp-admin/js
Upload
[..]
accordion.js (2.86 KB)
Edit
Rename
Del
accordion.min.js (758 B)
Edit
Rename
Del
application-passwords.min.js (2.95 KB)
Edit
Rename
Del
auth-app.min.js (2.04 KB)
Edit
Rename
Del
color-picker.js (9.54 KB)
Edit
Rename
Del
color-picker.min.js (3.4 KB)
Edit
Rename
Del
common.js (61.15 KB)
Edit
Rename
Del
custom-header.js (1.98 KB)
Edit
Rename
Del
customize-controls.js (288.41 KB)
Edit
Rename
Del
customize-nav-menus.min.js (47.14 KB)
Edit
Rename
Del
edit-comments.min.js (15.13 KB)
Edit
Rename
Del
editor.js (44 KB)
Edit
Rename
Del
gallery.min.js (3.65 KB)
Edit
Rename
Del
inline-edit-post.js (20.17 KB)
Edit
Rename
Del
inline-edit-post.min.js (9.41 KB)
Edit
Rename
Del
link.min.js (1.7 KB)
Edit
Rename
Del
media-gallery.js (1.27 KB)
Edit
Rename
Del
media-gallery.min.js (611 B)
Edit
Rename
Del
media-upload.min.js (1.13 KB)
Edit
Rename
Del
password-strength-meter.min.js (1.1 KB)
Edit
Rename
Del
plugin-install.js (6.92 KB)
Edit
Rename
Del
site-health.js (13.15 KB)
Edit
Rename
Del
site-health.min.js (6.13 KB)
Edit
Rename
Del
site-icon.min.js (2.2 KB)
Edit
Rename
Del
svg-painter.min.js (1.53 KB)
Edit
Rename
Del
tags-box.js (10.88 KB)
Edit
Rename
Del
tags-box.min.js (3 KB)
Edit
Rename
Del
tags-suggest.js (5.64 KB)
Edit
Rename
Del
tags-suggest.min.js (2.22 KB)
Edit
Rename
Del
tags.js (5.96 KB)
Edit
Rename
Del
tags.min.js (2.41 KB)
Edit
Rename
Del
user-suggest.min.js (676 B)
Edit
Rename
Del
widgets/
Rename
Del
Edit: accordion.js
/** * Accordion-folding functionality. * * Markup with the appropriate classes will be automatically hidden, * with one section opening at a time when its title is clicked. * Use the following markup structure for accordion behavior: * * <div class="accordion-container"> * <div class="accordion-section open"> * <h3 class="accordion-section-title"><button type="button" aria-expanded="true" aria-controls="target-1"></button></h3> * <div class="accordion-section-content" id="target"> * </div> * </div> * <div class="accordion-section"> * <h3 class="accordion-section-title"><button type="button" aria-expanded="false" aria-controls="target-2"></button></h3> * <div class="accordion-section-content" id="target-2"> * </div> * </div> * <div class="accordion-section"> * <h3 class="accordion-section-title"><button type="button" aria-expanded="false" aria-controls="target-3"></button></h3> * <div class="accordion-section-content" id="target-3"> * </div> * </div> * </div> * * Note that any appropriate tags may be used, as long as the above classes are present. * * @since 3.6.0 * @output wp-admin/js/accordion.js */ ( function( $ ){ $( function () { // Expand/Collapse accordion sections on click. $( '.accordion-container' ).on( 'click', '.accordion-section-title button', function() { accordionSwitch( $( this ) ); }); }); /** * Close the current accordion section and open a new one. * * @param {Object} el Title element of the accordion section to toggle. * @since 3.6.0 */ function accordionSwitch ( el ) { var section = el.closest( '.accordion-section' ), container = section.closest( '.accordion-container' ), siblings = container.find( '.open' ), siblingsToggleControl = siblings.find( '[aria-expanded]' ).first(), content = section.find( '.accordion-section-content' ); // This section has no content and cannot be expanded. if ( section.hasClass( 'cannot-expand' ) ) { return; } // Add a class to the container to let us know something is happening inside. // This helps in cases such as hiding a scrollbar while animations are executing. container.addClass( 'opening' ); if ( section.hasClass( 'open' ) ) { section.toggleClass( 'open' ); content.toggle( true ).slideToggle( 150 ); } else { siblingsToggleControl.attr( 'aria-expanded', 'false' ); siblings.removeClass( 'open' ); siblings.find( '.accordion-section-content' ).show().slideUp( 150 ); content.toggle( false ).slideToggle( 150 ); section.toggleClass( 'open' ); } // We have to wait for the animations to finish. setTimeout(function(){ container.removeClass( 'opening' ); }, 150); // If there's an element with an aria-expanded attribute, assume it's a toggle control and toggle the aria-expanded value. if ( el ) { el.attr( 'aria-expanded', String( el.attr( 'aria-expanded' ) === 'false' ) ); } } })(jQuery);
Simpan