1const component=d.getAll('.flextabs');const toggles=[];const contents=[];for(let i=0;i<component.length;i++){toggles.push(d.getAll({'.flextabs__toggle':component[i]}));contents.push(d.getAll({'.flextabs__content':component[i]}));for(let j=0;j<toggles[i].length;j++){d.on('click',toggles[i][j],function(){for(let k=0;k<toggles[i].length;k++){toggles[i][k].classList.remove('flextabs__toggle--active');contents[i][k].classList.remove('flextabs__content--active');} 2toggles[i][j].classList.add('flextabs__toggle--active');contents[i][j].classList.add('flextabs__content--active');updateURL(toggles[i][j].getAttribute('id'));})}} 3function updateURL(activeTabId){const anchor='#'+activeTabId;history.replaceState(null,'',location.pathname+anchor);console.log(anchor);} 4const hash=location.hash;if(hash&&d.get('.flextabs')){const tabId=hash.replace('#','');d.get('.flextabs__toggle--active').classList.remove('flextabs__toggle--active');d.get('.flextabs__content--active').classList.remove('flextabs__content--active');d.get(location.hash).classList.add('flextabs__toggle--active');d.get(`[data-hash=${tabId}]`).classList.add('flextabs__content--active');console.log(`[data-hash=${tabId}]`);}
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.