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