1// ãããã¼é¨ã¨ããã¿ã¼é¨ããã¼ã¸ã«åãè¾¼ãã¡ã½ãã (ãã®å¾ãªã¹ãã¼ãã¡ãå¼ã¶) 2async function loadHeaderAndFooter() { 3 const headerContainer = document.getElementById('js-header'); 4 const footerContainer = document.getElementById('footer-container'); 5 6 // /en/ é ä¸ã®ãã¼ã¸ãã©ããã§ãããã¼/ããã¿ã¼ã®ãã¹ãåãæ¿ãã 7 const isEn = window.location.pathname.startsWith('/en/'); 8 var headerFile = isEn ? '/en/common/header.html' : '/common/header.html'; 9 var footerFile = isEn ? '/en/common/footer.html' : '/common/footer.html'; 10 11 await fetch(headerFile) 12 .then(response => response.text()) 13 .then(data => { 14 headerContainer.innerHTML = data; 15 }) 16 .catch(error => { 17 console.log('Error loading the header'); 18 }); 19 20 await fetch(footerFile) 21 .then(response => response.text()) 22 .then(data => { 23 footerContainer.innerHTML = data; 24 }) 25 .catch(error => { 26 console.log('Error loading the footer'); 27 }); 28 29 // index.min.jsã®ã³ã¼ããèªãã§ããªã¹ãã¼ãã¡ã宣è¨ãã 30 bindEvents(); 31 32 // ãããã¼ã®AGIã·ãªã¼ãºãããã¼ãã 33 hoverHeaderAGISeries(); 34 35 // Cookieåæã¹ã¯ãªãããèªã¿è¾¼ã 36 if (!document.getElementById('documentagi-cookie-consent-script')) { 37 var cs = document.createElement('script'); 38 cs.id = 'documentagi-cookie-consent-script'; 39 cs.src = '/assets/js/cookie-consent.js'; 40 document.body.appendChild(cs); 41 } 42} 43 44// ãããã¼ã®AGIã·ãªã¼ãºãç»é¢åæè¡¨ç¤ºã®æã«ããã©ã«ãã§ããã¼ç¶æ ã«ãã 45// â»ä¸åº¦ããã¼ãããé表示ã«ãã 46function hoverHeaderAGISeries() { 47 const agiSeries = document.querySelector('.d-header__navItem--wSub.agiSeries'); 48 if (!agiSeries) return; 49 agiSeries.classList.add('is-open'); 50 agiSeries.addEventListener('mouseenter', () => agiSeries.classList.remove('is-open')); 51} 52 53// ãã¼ã¸ããã¼ããããåãè¾¼ã (DOMContentLoadedã§çºç«ãããã¨ã§loadå¾ ã¡ãåé¿) 54document.addEventListener("DOMContentLoaded", loadHeaderAndFooter);
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.