1jQuery(function( $ ){ 2 3 var comment_div = $('#comments-container'); 4 5 if(comment_div[0]) { 6 $('<button id="show_comments">Show Comments</button>').insertBefore(comment_div); 7 8 comment_div.hide(); 9 10 $('#show_comments').on('click',function(){ 11 // comment_div.fadeIn('slow'); 12 // $('#show_comments').fadeOut('slow'); 13 14 // make the collapse content to be shown or hidden 15 var toggle_switch = $(this); 16 17 comment_div.toggle(function(){ 18 if($(this).css('display')=='none'){ 19 //change the button label to be 'Show' 20 toggle_switch.html('Show Comments'); 21 } else { 22 //change the button label to be 'Hide' 23 toggle_switch.html('Hide Comments'); 24 } 25 }); 26 }); 27 } 28 29});
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.