1$(function() { 2 var nav = $('.fix_nav'); 3 //表示ä½ç½® 4 var navTop = nav.offset().top+100; 5 //ããã²ã¼ã·ã§ã³ã®é«ãï¼ã·ã£ãã¦ã®åã ãè¶³ãã¦ã¾ãï¼ 6 var navHeight = nav.height()+10; 7 var showFlag = false; 8 nav.css('top', -navHeight+'px'); 9 //ããã²ã¼ã·ã§ã³ã®ä½ç½®ã¾ã§ããã表示 10 $(window).scroll(function () { 11 var winTop = $(this).scrollTop(); 12 if (winTop >= navTop) { 13 if (showFlag == false) { 14 showFlag = true; 15 nav 16 .addClass('fixed') 17 .stop().animate({'top' : '0px'}, 200); 18 } 19 } else if (winTop <= navTop) { 20 if (showFlag) { 21 showFlag = false; 22 nav.stop().animate({'top' : -navHeight+'px'}, 200, function(){ 23 nav.removeClass('fixed'); 24 }); 25 } 26 } 27 }); 28});
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.