1/** 2 * Block Tabs 3 */ 4( function( $ ) { 5 6 $( document ).ready( function() { 7 8 $( document ).on( 'click', '.cnvs-block-tabs .cnvs-block-tabs-button a', function( e ) { 9 e.preventDefault(); 10 11 var $tab = $( this ).closest( '.cnvs-block-tabs-button' ); 12 var $tabs = $tab.closest( '.cnvs-block-tabs' ); 13 14 $tab 15 .addClass( 'cnvs-block-tabs-button-active' ) 16 .siblings() 17 .removeClass( 'cnvs-block-tabs-button-active' ); 18 $tabs 19 .find( '.cnvs-block-tabs-content' ).children( '.cnvs-block-tab:eq(' + $tab.index() + ')' ) 20 .addClass( 'cnvs-block-tab-active' ) 21 .siblings() 22 .removeClass( 'cnvs-block-tab-active' ); 23 } ); 24 25 $( '.cnvs-block-tabs .cnvs-block-tabs-button-active a' ).click(); 26 27 } ); 28} )( 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.