1$(function(){ 2 // #ã§å§ã¾ãaè¦ç´ ãã¯ãªãã¯ããå ´åã«å¦ç 3 $('a[href^="#"]').click(function(){ 4 // ç§»åå ã0px調æ´ããã0ã30ã«ããã¨30pxä¸ã«ããããã¨ãã§ããã 5 var adjust = 0; 6 // ã¹ã¯ãã¼ã«ã®é度ï¼ããªç§ï¼ 7 var speed = 400; 8 // ã¢ã³ã«ã¼ã®å¤åå¾ ãªã³ã¯å ï¼hrefï¼ãåå¾ãã¦ãhrefã¨ãã夿°ã«ä»£å ¥ 9 var href= $(this).attr("href"); 10 // ç§»åå ãåå¾ ãªã³ã¯å (hrefï¼ã®idãããè¦ç´ ãæ¢ãã¦ãtargetã«ä»£å ¥ 11 var target = $(href == "#" || href == "" ? 'html' : href); 12 // ç§»åå ãèª¿æ´ idã®è¦ç´ ã®ä½ç½®ãoffset()ã§åå¾ãã¦ãpositionã«ä»£å ¥ 13 var position = target.offset().top + adjust; 14 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« linearï¼çéï¼ or swingï¼å¤éï¼ 15 $('body,html').animate({scrollTop:position}, speed, 'swing'); 16 return false; 17 }); 18 });
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.