1$(function(){ 2 var topBtn = $('#page-top'); 3 topBtn.hide(); 4 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 5 $(window).scroll(function () { 6 if ($(this).scrollTop() > 100) { 7 topBtn.fadeIn(); 8 } else { 9 topBtn.fadeOut(); 10 } 11 }); 12 //ã¹ã¯ãã¼ã«ãã¦ããã 13 topBtn.click(function () { 14 $('body,html').animate({ 15 scrollTop: 0 16 }, 300); 17 return false; 18 }); 19 20 $('a[href^=#]').click(function(){ 21 var speed = 500; 22 var href= $(this).attr("href"); 23 var target = $(href == "#" || href == "" ? 'html' : href); 24 var position = target.offset().top; 25 $("html, body").animate({scrollTop:position}, speed, "swing"); 26 return false; 27 }); 28}); 29 30 31 32//ã¡ãã¥ã¼ã®ãã¼ã¸ä¸é¨ããã®è·é¢ãåå¾ 33$(function(){ 34var menu_offset = $(".gnavi_wrap").offset().top; 35 36$(window).scroll( 37 function(){ 38 //ç¾å¨ã®ã¹ã¯ãã¼ã«éãåå¾ 39 var my_offset = $(window).scrollTop(); 40 if(menu_offset < my_offset){ 41 //ç¾å¨ã®ã¹ã¯ãã¼ã«éãã¡ãã¥ã¼ã®ãã¼ã¸ä¸é¨ããã®è·é¢ãè¶ããå ´åã«ã¯ã©ã¹ãfixedããä»ä¸ 42 $(".gnavi_wrap").addClass("fixed"); 43 } else { 44 //éã®å ´åã«ã¯ã©ã¹ãfixedããè§£é¤ 45 $(".gnavi_wrap").removeClass("fixed"); 46 } 47 } 48) 49}); 50 51 52 53 54//é»è©±çªå·ãã¹ãã対ç 55$(function(){ 56 var ua = navigator.userAgent; 57 if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0){ 58 $('.tel-link').each(function(){ 59 var str = $(this).text(); 60 $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>')); 61 }); 62 } 63}); 64
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.