1$(function() { 2 3 // â aã¿ã°ãã¯ãªãã¯ããhref屿§ã« # ããå§ã¾ããªã³ã¯ãè¨å®ãã¦ãã£ããçºå 4 $('a[href^="#"]').click(function(){ 5 6 // â¡ã¯ãªãã¯ããaã¿ã°ã®href屿§ï¼ãªã³ã¯å URIï¼ãåå¾ãã夿°ã«æ ¼ç´ 7 var href = $(this).attr('href'); 8 9 // â¢ä¸ã§åå¾ããå¤ã#ã空ç½ã ã£ãã'html'ãããã以å¤ã ã£ããå ã»ã©åå¾ããhref屿§ã®å¤ã夿°ã«æ ¼ç´ 10 var target = $(href == '#' || href === '' ? 'html' : href); 11 12 // â£å¤æ°targetã®ãã¼ã¸ãããããã®ä½ç½®ãåå¾ãã夿°ã«æ ¼ç´ 13 var position = target.offset().top; 14 15 // â¤scrollTopã«ä¸ã§åå¾ããä½ç½®ãè¨å®ãããã«ãã«ã¨ã¹ã¯ãã¼ã«ããã 16 $('html,body').animate({scrollTop : position}, 500); 17 18 // â¥aè¦ç´ ã®ããã©ã«ãã®æ©è½ãç¡å¹åãã 19 return false; 20 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.