Initial commit: полный проект my_speaker
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export function renderNav(currentSection) {
|
||||
document.querySelectorAll("nav button").forEach((btn) => {
|
||||
btn.classList.toggle("active", btn.dataset.section === currentSection); // Используем переданный currentSection
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user