Library

tabs.forEach(tab => { tab.addEventListener("click", () => { tabs.forEach(btn => btn.classList.remove("active")); contents.forEach(content => content.classList.remove("active")); tab.classList.add("active"); document.getElementById(tab.dataset.tab).classList.add("active"); }); });

Sidebar