Версия 0.3.0 #3

Merged
kor-elf merged 11 commits from develop into main 2024-07-27 02:09:14 +05:00
Showing only changes of commit 707762d29b - Show all commits

View File

@ -1,8 +1,10 @@
let blockDocumentationVersion = document.querySelector('#documentation-version'); let blockDocumentationVersion = document.querySelector('#documentation-version');
blockDocumentationVersion.querySelector('.documentation-version__button').addEventListener('click', (e) => { if (blockDocumentationVersion) {
if (blockDocumentationVersion.classList.contains('active')) { blockDocumentationVersion.querySelector('.documentation-version__button').addEventListener('click', (e) => {
blockDocumentationVersion.classList.remove('active'); if (blockDocumentationVersion.classList.contains('active')) {
} else { blockDocumentationVersion.classList.remove('active');
blockDocumentationVersion.classList.add('active'); } else {
} blockDocumentationVersion.classList.add('active');
}); }
});
}