first commit

This commit is contained in:
2025-10-16 23:20:15 +03:00
commit f4da46b260
28 changed files with 311 additions and 0 deletions

7
main.js Normal file
View File

@@ -0,0 +1,7 @@
document.querySelectorAll('.header_top_item').forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault(); // если не нужно переходить со страницы
document.querySelectorAll('.header_top_item').forEach(el => el.classList.remove('active'));
item.classList.add('active');
});
});