1$(function() { 2 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 3 $('a[href^="#"]').click(function() { 4 // ã¹ã¯ãã¼ã«ã®é度 5 var speed = 600; // ããªç§ 6 // ã¢ã³ã«ã¼ã®å¤åå¾ 7 var href = $(this).attr("href"); 8 // ç§»åå ãåå¾ 9 var target = $(href == "#" || href == "" ? 'html' : href); 10 // ç§»åå ãæ°å¤ã§åå¾ 11 var position = target.offset().top; 12 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 13 $('body,html').animate({ scrollTop: position }, speed, 'swing'); 14 return false; 15 }); 16 17}); 18 19$(function() { 20 $('#btnGnavi').click(function() { 21 $('#gNavi ul').stop().slideToggle('fast'); 22 }); 23}); 24 25 26$(function() { 27 var menuBtn = $('#header a.menu-trigger'); 28 menuBtn.on('click', function() { 29 if ($(this).hasClass('active')) { 30 $(this).removeClass('active'); 31 $('#gNavi').fadeOut('fast', function() { 32 $('#gNavi ul').hide().css({ right: '-100vw' }); 33 }); 34 } else { 35 $(this).addClass('active'); 36 $('#gNavi').fadeIn('fast', function() { 37 $('#gNavi ul').stop().show().animate({ right: 0 }, 'slow'); 38 }); 39 } 40 return false; 41 }); 42 43}); 44 45 46$(function() { 47 // Send event to Google Analytics 48 $('a[href^="tel:"]').click(function() { 49 var txt = $(this).attr('href'); 50 var pathName = $(location).attr('pathname'); 51 52 // For Global Site Tag 53 gtag('event', 'tel', { 'event_category': 'sp', 'event_label': txt + ', pageURL:' + pathName }); 54 55 // For Universal Analytics 56 //ga('send', 'event', 'sp', 'tel', txt+', pageURL:'+pathName); 57 }); 58});
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.