1! function( $ ) { 2 "use strict"; 3 4 Codevz_Plus.accordion = function( wpb ) { 5 6 wpb && $( '.cz_acc' ).removeData( 'codevz' ); 7 8 $( '.cz_acc' ).codevzPlus( 'acc', function( x ) { 9 10 var arrows = x.data( 'arrows' ); 11 12 // Add arrows. 13 x.find( '.cz_acc_open_icon, .cz_acc_close_icon' ).remove(); 14 x.find( '.cz_acc_child' ).append( '<i class="cz_acc_open_icon ' + arrows.open + '"></i><i class="cz_acc_close_icon ' + arrows.close + '"></i>' ); 15 16 // First open. 17 if ( x.hasClass( 'cz_acc_first_open' ) ) { 18 x.find( '> div > div:first' ).addClass( 'cz_isOpen' ).find( '.cz_acc_child_content' ).show(); 19 x.find( '> div > div:first .cz_acc_open_icon' ).hide().next( 'i' ).show(); 20 } 21 22 }); 23 24 // onClick. 25 $( '.cz_acc_child' ).off( 'click' ).on( 'click', function( e ) { 26 27 var dis = $( this ), 28 clo = dis.closest( '.cz_acc' ), 29 con = dis.next(); 30 31 if ( con.is( ':visible' ) ) { 32 dis.find( '.cz_acc_open_icon' ).show().next( 'i' ).hide(); 33 con.slideUp().parent().removeClass( 'cz_isOpen' ); 34 return; 35 } 36 37 if ( ! clo.hasClass( 'cz_acc_toggle' ) ) { 38 clo.find( '.cz_acc_open_icon' ).show().next( 'i' ).hide(); 39 clo.find( '.cz_acc_child_content' ).slideUp().parent().removeClass( 'cz_isOpen' ); 40 } 41 42 dis.find( '.cz_acc_open_icon' ).hide().next('i').show(); 43 con.slideToggle().parent().toggleClass( 'cz_isOpen' ); 44 45 // Fix grid 46 if ( con.find( '.cz_grid' ).data( 'isotope' ) ) { 47 setTimeout(function() { 48 con.find( '.cz_grid' ).isotope( 'layout' ); 49 }, 250 ); 50 } 51 52 return false; 53 54 }); 55 56 }; 57 58 Codevz_Plus.accordion(); 59 60}( 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.