1$(function(){ 2 // #ã§å§ã¾ããªã³ã¯ãã¯ãªãã¯ããå ´å 3 $('a[href^="#"]').click(function() { 4 // ã¹ã¯ãã¼ã«ã®é度 5 let speed = 400; 6 // ã¹ã¯ãã¼ã«ã¿ã¤ã 7 let type = 'swing'; 8 // href屿§ã®åå¾ 9 let href= $(this).attr("href"); 10 // ç§»åå ã®åå¾ï¼hrefã#indexãªãããã$(html)ã«ãï¼ 11 let target = $(href == "#index" ? 'html' : href); 12 // ç§»åå ã®ãã¸ã·ã§ã³åå¾ 13 let position = target.offset().top; 14 // animateã§ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 15 $('body,html').animate({scrollTop:position}, speed, type); 16 return false; 17 }); 18}); 19 20 21$(function(){ 22 var s = $('#page_top'); 23 $(window).scroll(function () { 24 if ( $(this).scrollTop() > 100 ) { 25 s.addClass('page_top_scroll'); 26 } else { 27 s.removeClass('page_top_scroll'); 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.