1$(function(){ 2 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 3 $(document).on( "click", 'a[href^=#]', function() { 4 var headerH = $('header').outerHeight(); 5 var position; 6 if(!$(this).hasClass('noSmooth')){ 7 // ã¹ã¯ãã¼ã«ã®é度 8 var speed = 1000; // ããªç§ 9 // ã¢ã³ã«ã¼ã®å¤åå¾ 10 var href= $(this).attr("href"); 11 // ç§»åå ãåå¾ 12 var target = $(href === "#" || href === "" ? 'html' : href); 13 // ç§»åå ãæ°å¤ã§åå¾ 14 position = target.offset().top; 15 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 16 $('body,html').animate({scrollTop:position}, speed, 'easeOutCubic'); 17 return false; 18 } 19 }); 20}); 21$(window).on('load', function() { 22 var url = $(location).attr('href'); 23 if(url.indexOf("?id=") !== -1){ 24 var id = url.split("?id="); 25 var $target = $('#' + id[id.length - 1]); 26 if($target.length){ 27 var pos = $target.offset().top - $('header .head-fixed').outerHeight(); 28 $("html, body").animate({scrollTop:pos}, 0, 'easeOutCubic'); 29 } 30 } 31});
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.