1window.addEvent ("load", function() { 2 if($jsmart("#yt_menuwrap")){ 3 offset_top = $jsmart("#yt_menuwrap").offset().top 4 processScroll("#yt_menuwrap", "menu-fixed", offset_top); 5 $jsmart(window).scroll(function(){ 6 processScroll("#yt_menuwrap", "menu-fixed", offset_top); 7 }); 8 } 9}); 10function processScroll(element, eclass, offset_top, column, offset_end) { 11 var scrollTop = $jsmart(window).scrollTop(); 12 if($jsmart(element).height()< $jsmart(window).height()){ 13 if (scrollTop >= offset_top) { 14 $jsmart(element).addClass(eclass); 15 } else if (scrollTop <= offset_top) { 16 $jsmart(element).removeClass(eclass); 17 } 18 if(column){ 19 if(scrollTop + $jsmart(element).height() > offset_end){ 20 $jsmart(element).removeClass(eclass); 21 } 22 } 23 } 24} 25
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.