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