1jQuery( document ).ready( function () { 2 jQuery( document ).on( 'click', '.flexible-shipping-log>button.show', function(event){ 3 event.preventDefault(); 4 let $parent = jQuery(this).parent(); 5 $parent.find('.hide').show(); 6 $parent.find('pre').show(); 7 jQuery(this).hide(); 8 }); 9 jQuery( document ).on( 'click', '.flexible-shipping-log>button.hide', function(event){ 10 event.preventDefault(); 11 let $parent = jQuery(this).parent(); 12 $parent.find('.show').show(); 13 $parent.find('pre').hide(); 14 jQuery(this).hide(); 15 }); 16 17 jQuery( document ).on( 'click', '.flexible-shipping-log>button.clipboard', function(event){ 18 event.preventDefault(); 19 let $temp = jQuery("<textarea>"); 20 jQuery('body').append( $temp ); 21 $temp.val(jQuery(this).parent().find('pre').text()).select(); 22 document.execCommand('copy'); 23 $temp.remove(); 24 }); 25 26 jQuery( document ).on( 'click', 'button.flexible-shipping-log-clipboard-all', function(event){ 27 event.preventDefault(); 28 let $temp = jQuery("<textarea>"); 29 jQuery('body').append( $temp ); 30 jQuery(this).parent().find('.flexible-shipping-log').find('pre').each(function(){ 31 $temp.val( $temp.val() + "\n\n" + jQuery( this ).text() ); 32 }); 33 $temp.select(); 34 35 document.execCommand('copy'); 36 $temp.remove(); 37 }); 38 39});
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.