1(function( $ ) { 2 $( document ).ready(function() { 3 $( '.bt_bb_fe_count' ).click(function( e ) { 4 var order = $( this ).find( '.bt_bb_fe_count_inner' ).html(); 5 if ( window != window.top ) { // iframe 6 $( '.bt_bb_front_end_preview_close', window.parent.document ).click(); 7 $( 'html, body', window.parent.document ).animate({ 8 scrollTop: $( '.bt_bb_item_list', window.parent.document ).children().eq( order - 1 ).offset().top - $( '#wpadminbar', window.parent.document ).height() 9 }, 500 ); 10 } else { 11 if ( $( this ).find( '.bt_bb_fe_count_inner' ).data( 'edit_url' ) !== undefined ) { 12 if ( e.ctrlKey ) { 13 window.open( $( this ).find( '.bt_bb_fe_count_inner' ).data( 'edit_url' ) + '&bt_bb_order=' + order, '_blank' ); 14 } else { 15 window.location.replace( $( this ).find( '.bt_bb_fe_count_inner' ).data( 'edit_url' ) + '&bt_bb_order=' + order ); 16 } 17 } else { 18 if ( e.ctrlKey ) { 19 window.open( $( '#wp-admin-bar-edit .ab-item' ).attr( 'href' ) + '&bt_bb_order=' + order, '_blank' ); 20 } else { 21 window.location.replace( $( '#wp-admin-bar-edit .ab-item' ).attr( 'href' ) + '&bt_bb_order=' + order ); 22 } 23 } 24 } 25 }); 26 27 var bt_bb_fe_preview_toggle = localStorage.getItem( 'bt_bb_fe_preview_toggle' ); 28 if ( bt_bb_fe_preview_toggle == 'true' || ! window.bt_bb_fe_can_edit ) { 29 $( 'body' ).addClass( 'bt_bb_fe_preview_toggle' ); 30 } else { 31 $( 'body' ).removeClass( 'bt_bb_fe_preview_toggle' ); 32 } 33 34 $( '.bt_bb_fe_preview_toggler' ).on( 'click', function ( e ) { 35 e.stopPropagation(); 36 $( 'body' ).toggleClass( 'bt_bb_fe_preview_toggle' ); 37 var has_class = false; 38 if ( $( 'body' ).hasClass( 'bt_bb_fe_preview_toggle' ) ) { 39 has_class = true; 40 } 41 localStorage.setItem( 'bt_bb_fe_preview_toggle', has_class ); 42 }); 43 44 }); 45}( 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.