1 2 3/* --------------------- 4 Smoothscroll 5--------------------- */ 6 7jQuery(function(){ 8 jQuery('body').append('<a href="javascript:void(0);" id="fixedTop">Top</a>'); 9 var fixedTop = jQuery('#fixedTop'); 10 fixedTop.on('click',function(){ 11 jQuery('html,body').animate({scrollTop:'0'},500); 12 }); 13 14 jQuery(window).on('load scroll resize',function(){ 15 var showTop = 100; 16 if(jQuery(window).scrollTop() > showTop){ 17 fixedTop.fadeIn('normal'); 18 } else { 19 fixedTop.fadeOut('normal'); 20 } 21 }); 22}); 23 24 25// ã¹ã¯ãã¼ã«ã¤ãã³ã 26window.addEventListener( "scroll", function() { 27 28 var headerElement = document.getElementById( "header" ) ; // `#header`ã»ã¬ã¯ã¿ãåå¾ 29 var rect = headerElement.getBoundingClientRect() ; // 30 var y = rect.top + window.pageYOffset ; // Yæ¹å (縦)ã«ã¹ã¯ãã¼ã«éãåå¾ï¼pageYOffsetï¼windowãªãã¸ã§ã¯ããç¾å¨è¡¨ç¤ºä½ç½®ã®Y座æ¨ãåå¾ï¼ 31 if (y > 0) { // 夿°yã®å¤ã0ããã 32 headerElement.classList.remove('hidden'); // 大ãããã°hiddensã»ã¬ã¯ã¿ãåé¤ãã 33 } else { 34 headerElement.classList.add('hidden'); // ããã§ãªããã°hiddensã»ã¬ã¯ã¿ã追å ãã 35 } 36} ) ;
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.