1 2document.addEventListener("DOMContentLoaded", () => { 3 const termTabs = document.querySelectorAll(".compare-term-tab"); 4 const linkTabs = document.querySelectorAll(".compare-links-tab"); 5 6 termTabs.forEach(tab => { 7 tab.addEventListener("click", () => { 8 const termId = tab.dataset.termId; 9 10 // ãã¹ã¦ã® active ãè§£é¤ 11 termTabs.forEach(t => t.classList.remove("active")); 12 linkTabs.forEach(c => c.classList.remove("active")); 13 14 // ã¯ãªãã¯ãããã¿ããæå¹å 15 tab.classList.add("active"); 16 17 // 対å¿ããã³ã³ãã³ããæå¹å 18 const target = document.querySelector( 19 `.compare-links-tab[data-term-id="${termId}"]` 20 ); 21 if (target) { 22 target.classList.add("active"); 23 } 24 }); 25 }); 26});
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.