1trunc_box = { 2 init: function(){ 3 jQuery('.trunc_box').each(function(i,e){ 4 trunc_box.do_trunc(i,e); 5 }); 6 }, 7 read_more: function(more_btn,orig_h){ 8 var more_btn_wrap = jQuery(more_btn).parent(); 9 var trunc_box_wrap = jQuery(more_btn_wrap).prev(); 10 jQuery(more_btn_wrap).html("<button style='margin-bottom:10px;' type='button' class='btn btn-small btn-inverse' onclick=\"trunc_box.hide_more(this,"+orig_h+");\">hide more</button>"); 11 jQuery(trunc_box_wrap).animate({height:+orig_h+'px'},1000); 12 }, 13 hide_more: function(more_btn,orig_h){ 14 var more_btn_wrap = jQuery(more_btn).parent(); 15 var trunc_box_wrap = jQuery(more_btn_wrap).prev(); 16 jQuery(more_btn_wrap).html("<button style='margin-bottom:10px;' type='button' class='btn btn-small btn-inverse' onclick=\"trunc_box.read_more(this,"+orig_h+");\">read more</button>"); 17 jQuery(trunc_box_wrap).animate({height:'150px'},1000); 18 }, 19 do_trunc: function(index,box){ 20 var orig_h = jQuery(box).height(); 21 if(orig_h > 150){ 22 jQuery(box).after("<div class='read_more'><button style='margin-bottom:10px;' type='button' class='btn btn-small btn-inverse' onclick=\"trunc_box.read_more(this,"+orig_h+");\">read more</button></div>"); 23 jQuery(box).css('height','150px'); 24 } 25 } 26} 27 28jQuery(window).load(function(){ 29 trunc_box.init(); 30});
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.