1 2document.addEventListener('DOMContentLoaded', function() { 3 document.body.addEventListener('click', function(event) { 4 var link = event.target; 5 if (link.tagName.toLowerCase() !== 'a') { 6 link = link.closest('a'); 7 } 8 if (link && link.tagName.toLowerCase() === 'a' && link.href.startsWith('tel:')) { 9 var label = ''; 10 if (link.closest('nav')) { 11 label = 'nav'; 12 } else if (link.closest('#footer-section')) { 13 label = 'footer-section'; 14 } else { 15 var section = link.closest('[id^="section_"]'); 16 if (section) { 17 label = section.id.replace('section_', ''); 18 } else { 19 label = 'other'; 20 } 21 } 22 gtag('event', 'tel-tap', { 23 'event_category': 'click', 24 'event_label': label 25 }); 26 } 27 }); 28}); 29 30 31// ä¸ãã表示ãããè¦ç´ ãæå® 32$(window).on('scroll', function () { 33 //ã¹ã¯ãã¼ã«ä½ç½®ãåå¾ 34 if ($(this).scrollTop() < 100) { 35 $('.back-top, #section-wrapper').removeClass('isActive'); 36 } else { 37 $('.back-top, #section-wrapper').addClass('isActive'); 38 } 39}); 40 41window.addEventListener('load', function () { 42 var url = location.hostname; 43 if (url != 'cms.careecon-sites.jp') { 44 45 //ä¸è¦ãªè¦ç´ ãæ¶ã 46 $(function(){ 47 $('.section_btn .btn-hide').parents('.section_btn').css('display','none'); 48 }); 49 50 } 51});
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.