1$(function () { 2/****************************** 3telãªã³ã¯å¦ç 4******************************/ 5$(function() { 6 var ua = navigator.userAgent.toLowerCase(); 7 var isMobile = /iphone/.test(ua)||/android(.+)?mobile/.test(ua); 8 9 if (!isMobile) { 10 $('a[href^="tel:"]').on('click', function(e) { 11 e.preventDefault(); 12 }); 13 } 14}); 15/****************************** 16pagetop 17******************************/ 18var topBtn = $('.pagetop'); 19topBtn.hide(); 20$(window).scroll(function () { 21 if ($(this).scrollTop() > 100) { 22 topBtn.fadeIn(); 23 } else { 24 topBtn.fadeOut(); 25 } 26}); 27//ã¹ã¯ãã¼ã«ãã¦ããã 28topBtn.click(function () { 29 $('body,html').animate({ 30 scrollTop: 0 31 }, 500); 32 return false; 33}); 34/****************************** 35fixHeader 36******************************/ 37var $nav = $('nav'), 38navHead = $nav.offset().top; 39$(window).on("scroll", function () { 40//scrollTopã®å¤ã®åã¹ã¯ãã¼ã«ãããããã«.fixedã追å ãããã 41if ($(this).scrollTop() > navHead) { 42 $nav.addClass('fixed'); 43 44 45} else { 46 $nav.removeClass('fixed'); 47 48} 49}); 50/******************************
51slideDownNavi2 52******************************/ 53$("nav li").hover( 54 function () { 55 $(this).children('div').stop().slideDown(90); 56 $(this).addClass("active2"); 57 }, 58 function () { 59 $(this).children('div').stop().slideUp(90); 60 $(this).removeClass("active2"); 61 }); 62}); 63/****************************** 64ã¢ã³ã«ã¼ãªã³ã¯ 65******************************/ 66var headerHeight = $('header').outerHeight(); 67var urlHash = location.hash; 68if(urlHash) { 69 $('body,html').stop().scrollTop(0); 70 setTimeout(function(){ 71 var target = $(urlHash); 72 var position = target.offset().top - headerHeight; 73 $('body,html').stop().animate({scrollTop:position}, 500); 74 }, 100); 75} 76$('a[href^="#"]').click(function() { 77 var href= $(this).attr("href"); 78 var target = $(href); 79 var position = target.offset().top - headerHeight; 80 $('body,html').stop().animate({scrollTop:position}, 500); 81});
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.