1//ä¸ã¸æ»ããã¿ã³ç¨ 2$(document).ready(function(){ 3 4 // hide #back-top first 5 $("#back-top").hide(); 6 7 // fade in #back-top 8 $(function () { 9 $(window).scroll(function () { 10 if ($(this).scrollTop() > 100) { 11 $('#back-top').fadeIn(); 12 } else { 13 $('#back-top').fadeOut(); 14 } 15 }); 16 17 // scroll body to 0px on click 18 $('#back-top a').click(function () { 19 $('body,html').animate({ 20 scrollTop: 0 21 }, 800); 22 return false; 23 }); 24 }); 25}); 26 27 28$(function(){ 29 var headerHight = 60; 30 // #ã§å§ã¾ããªã³ã¯ãã¯ãªãã¯ãããå®è¡ããã¾ã 31 $('a[href^=#]').click(function() { 32 // ã¹ã¯ãã¼ã«ã®é度 33 var speed = 400; // ããªç§ã§è¨è¿° 34 var href= $(this).attr("href"); 35 var target = $(href == "#" || href == "" ? 'html' : href); 36 var position = target.offset().top-headerHight; 37 $('body,html').animate({scrollTop:position}, speed, 'swing'); 38 return false; 39 }); 40});
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.