1// ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 2$(function(){ 3 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 4 $('a[href^=#]').click(function() { 5 // ã¹ã¯ãã¼ã«ã®é度 6 var speed = 400;// ããªç§ 7 // ã¢ã³ã«ã¼ã®å¤åå¾ 8 var href= $(this).attr("href"); 9 // ç§»åå ãåå¾ 10 var target = $(href == "#" || href == "" ? 'html' : href); 11 // ç§»åå ãæ°å¤ã§åå¾ 12 var position = target.offset().top-47; 13 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 14 $('body,html').animate({scrollTop:position}, speed, 'swing'); 15// $($.browser.safari? 'body' : 'html').animate({scrollTop:position}, speed, 'swing'); 16 return false; 17 }); 18}); 19 20 21// ä»»æã®å ´æã¾ã§ã¹ã¯ãã¼ã«ããã¨ã³ã³ãã³ãã表示ãã 22$(function(){ 23 // ã¹ã¯ãã¼ã«ããã¨è¡¨ç¤ºããã¨ãªã¢ 24 var element = $('#pagetop'); 25 // ã¹ã¯ãã¼ã«éã®è¨å® 26 var position = 500; // åä½ï¼px 27 // ã¹ã¯ãã¼ã«ããã¨è¡¨ç¤ºããã¨ãªã¢ãé表示 28 element.hide(); 29 $(window).scroll(function(){ 30 // ã¹ã¯ãã¼ã«ããã¨è¡¨ç¤ºããã 31 if ($(this).scrollTop() > position) { 32 $(element).fadeIn(); 33 } else { 34 $(element).fadeOut(); 35 } 36 }); 37}); 38
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.