1/** 2 * Basic Shortcodes 3 */ 4( function( $ ) { 5 6 $( document ).ready( function() { 7 8 /* Alerts */ 9 $( document ).on( 'click', '.pk-alert .pk-close', function() { 10 $( this ).closest( '.pk-alert' ).remove(); 11 } ); 12 13 /* Tabs */ 14 $( '.pk-tab-pane' ).removeClass( 'pk-fade' ); 15 16 $( document ).on( 'click', '.pk-tabs .pk-nav-item .pk-nav-link', function() { 17 // Nav. 18 $( this ).parent().siblings().find( '.pk-active' ).removeClass( 'pk-active' ); 19 $( this ).addClass( 'pk-active' ); 20 21 // Pane. 22 $( this ).closest( '.pk-tabs' ).find( '.pk-tab-pane' ).removeClass( 'pk-show pk-active' ); 23 $( this ).closest( '.pk-tabs' ).find( '.pk-tab-content' ).find( $( this ).attr( 'href' ) ).addClass( 'pk-show pk-active' ); 24 25 return false; 26 } ); 27 28 /* Collapsibles */ 29 $( document ).on( 'click', '.pk-card a[data-toggle="collapse"]', function() { 30 31 if ( $( this ).closest( '.pk-collapsibles' ).length > 0 ) { 32 $( this ).closest( '.pk-card' ).siblings().removeClass( 'expanded' ); 33 $( this ).closest( '.pk-card' ).siblings().find( '.pk-collapse' ).slideUp(); 34 } 35 36 $( this ).closest( '.pk-card' ).toggleClass( 'expanded' ).find( $( this ).attr( 'href' ) ).slideToggle(); 37 38 return false; 39 } ); 40 } ); 41} )( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.