adaptive_fix_6

This commit is contained in:
2026-05-14 01:56:14 +03:00
parent edd2eec9cd
commit 6ae096d6c0
4 changed files with 145 additions and 20 deletions

View File

@@ -88,4 +88,19 @@ links.forEach(link => {
burger.classList.remove('active');
nav.classList.remove('active');
});
});
const btn = document.querySelector('.story_btn');
const text = document.querySelector('.heading_text');
btn.addEventListener('click', () => {
text.classList.toggle('active');
if (text.classList.contains('active')) {
btn.textContent = 'Скрыть историю';
} else {
btn.textContent = 'Открыть историю';
}
});