1jQuery(document).ready(function($) { 2 3 if( jQuery('#hours_table:not(.fixed)').length && !$('body').hasClass('wp-admin') ){ 4 5 jQuery(window).scroll(tableHeaderFixed); 6 7 function tableHeaderFixed(){ 8 var mywindow = jQuery(window), 9 scrollTop = mywindow.scrollTop() + 93, 10 tableTop = jQuery('#hours_table:not(.fixed)').offset().top, 11 tableHeight = jQuery('#hours_table:not(.fixed)').height(), 12 tableEndTop = tableTop + tableHeight - 50, 13 staticTableHeader = jQuery('#hours_table:not(.fixed) .dates-static'), 14 fixedTableHeader = jQuery('#hours_table:not(.fixed) .dates-fixed'), 15 hourNameWidth = jQuery('#hours_table:not(.fixed) .hours th.name').width() + 40, 16 lastColumnWidth = fixedTableHeader.children('th').eq(7).width() + 50; 17 18 fixedTableHeader.children('th').first().css('width', hourNameWidth); 19 //fixedTableHeader.children('th').eq(7).css('width', lastColumnWidth); 20 if( scrollTop > tableTop && scrollTop < tableEndTop ){ 21 staticTableHeader.css('opacity', 0); 22 fixedTableHeader.show(); 23 } else { 24 staticTableHeader.css('opacity', 1); 25 fixedTableHeader.hide(); 26 } 27 } 28 } 29 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.