1window.ch_event_init = window.ch_event_init || []; 2ch_event_init.push(function () { 3 jQuery(function ($) { 4 /* ---------------------------------------- 5 Smooth Scroll ï¼ãããã«æ»ããã¿ã³ï¼ 6 ---------------------------------------- */ 7 $(function () { 8 var btn = $(".p-footer__scroll-button"); 9 var timer; 10 var scrollThreshold = 500; 11 12 $(window).scroll(function () { 13 //ã¹ã¯ãã¼ã«éå§ããã¨ãã¿ã³ãé表示 14 btn.removeClass("is-active"); 15 //ã¹ã¯ãã¼ã«ä¸ã¯ã¤ãã³ãã®çºç«ããã£ã³ã»ã«ãã 16 clearTimeout(timer); 17 18 //ã¹ã¯ãã¼ã«ã忢ãã¦0.3ç§å¾ã«ã¤ãã³ããçºç«ãã 19 timer = setTimeout(function () { 20 // ç¾å¨ã®ã¹ã¯ãã¼ã«ä½ç½®ãåå¾ 21 var scrollTop = $(window).scrollTop(); 22 23 // ãããã¼ã®é«ãåã¹ã¯ãã¼ã«ãããå ´åããã¿ã³ã表示 24 if (scrollTop > scrollThreshold) { 25 btn.addClass("is-active"); 26 } else { 27 btn.removeClass("is-active"); 28 } 29 }, 300); 30 }); 31 //ãã¿ã³ã¯ãªãã¯ã§ãããã¸æ»ã 32 btn.click(function () { 33 $("body,html").animate( 34 { 35 scrollTop: 0, 36 }, 37 300 38 ); 39 return false; 40 }); 41 }); 42 }); 43}); // End of ch_event_init.push()
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.