( function ( $ ) { /////////////////////////////////////// // INIT /////////////////////////////////////// $( document ).ready( function () { initEvents(); configFixedElements(); } ); /////////////////////////////////////// // FUNCTIONS /////////////////////////////////////// function configFixedElements() { var jpTopFrame = $( '.frame.top' ), jpBottomFrame = $( '.frame.bottom' ), $body = $( 'body' ); $body.scroll( function () { if ( 33 > jpTopFrame.offset().top ) { jpTopFrame.addClass( 'fixed' ); $body.addClass( 'jp-frame-top-fixed' ); } if ( 120 <= jpBottomFrame.offset().top ) { jpTopFrame.removeClass( 'fixed' ); $body.removeClass( 'jp-frame-top-fixed' ); } } ); $( 'table.jetpack-modules', jpBottomFrame ).addClass( 'with-transparency' ); $( '.manage-left', jpBottomFrame ).css( 'width', '' ); $( '.manage-right', jpBottomFrame ).show(); } function initEvents() { // toggle search and filters at mobile resolution $( '.filter-search' ).on( 'click', function () { $( this ).toggleClass( 'active' ); $( '.manage-right' ).toggleClass( 'show' ); $( '.shade' ).toggle(); } ); // Toggle all checkboxes $( '.checkall' ).on( 'click', function () { $( '.table-bordered' ).find( ':checkbox' ).not( ':disabled' ).prop( 'checked', this.checked ); } ); // Clicking outside modal, or close X closes modal $( '.shade, .modal .close' ).on( 'click', function ( event ) { $( '.shade, .modal' ).hide(); $( '.manage-right' ).removeClass( 'show' ); event.preventDefault(); } ); } } )( jQuery );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blocks | Folder | 0755 |
|
|
build | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
genericons | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
social-logos | Folder | 0755 |
|
|
accessible-focus.js | File | 620 B | 0644 |
|
blogging-prompts.php | File | 8.49 KB | 0644 |
|
class.jetpack-provision.php | File | 9.65 KB | 0644 |
|
connect-button.js | File | 737 B | 0644 |
|
crowdsignal-shortcode.js | File | 660 B | 0644 |
|
crowdsignal-survey.js | File | 277 B | 0644 |
|
facebook-embed.js | File | 1 KB | 0644 |
|
gallery-settings.js | File | 1 KB | 0644 |
|
genericons.php | File | 565 B | 0644 |
|
jetpack-admin.js | File | 1.56 KB | 0644 |
|
jetpack-connection-banner.js | File | 1.17 KB | 0644 |
|
jetpack-deactivate-dialog.js | File | 2.8 KB | 0644 |
|
jetpack-modules.js | File | 2.42 KB | 0644 |
|
jetpack-modules.models.js | File | 2.08 KB | 0644 |
|
jetpack-modules.views.js | File | 1.69 KB | 0644 |
|
jetpack-recommendations-banner.js | File | 1.79 KB | 0644 |
|
jetpack-server-sandbox.php | File | 1.36 KB | 0644 |
|
polldaddy-shortcode.js | File | 2.66 KB | 0644 |
|
social-logos.php | File | 1014 B | 0644 |
|
twitter-timeline.js | File | 351 B | 0644 |
|