1jQuery(function($) { 2 3 $('a[href^="#"]').on('click', function() { 4 var speed = 500; 5 var href = $(this).attr('href'); 6 var target = $(href == '#' || href == '' ? 'html' : href); 7 var position = target.offset().top; 8 $('html, body').animate({ 9 scrollTop: position 10 }, speed, 'swing'); 11 return false; 12 }); 13 14 // TEL 15 var ua = navigator.userAgent.toLowerCase(); 16 var isMobile = /iphone/.test(ua) || /android(.+)?mobile/.test(ua); 17 if (!isMobile) { 18 $('a[href^="tel:"]').on('click', function(e) { 19 e.preventDefault(); 20 }); 21 $('header .tel a').css('cursor', 'default'); 22 } 23 24 var ua = navigator.userAgent; 25 if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0) { 26 $('.tel-link').each(function() { 27 var str = $(this).text(); 28 $(this).html($('<a>').attr({ 29 'href': 'tel:' + str.replace(/-/g, ''), 30 'onclick': "gtag('event', 'click', {'event_category':'sp', 'event_label':'tel'});gtag_report_conversion_tel ('tel:" + str + "');", 31 }).append(str + '</a>')); 32 }); 33 $('.tel-link').css('text-decoration', 'underline'); 34 } 35 36 // object-fit 37 if ($('.object-fit-img').length) { 38 objectFitImages('.object-fit-img'); 39 } 40 41});
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.