adaptive_fix_6
This commit is contained in:
@@ -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 = 'Открыть историю';
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user