Версия 0.3.0 #3
@ -1,8 +1,10 @@
|
||||
let blockDocumentationVersion = document.querySelector('#documentation-version');
|
||||
blockDocumentationVersion.querySelector('.documentation-version__button').addEventListener('click', (e) => {
|
||||
if (blockDocumentationVersion) {
|
||||
blockDocumentationVersion.querySelector('.documentation-version__button').addEventListener('click', (e) => {
|
||||
if (blockDocumentationVersion.classList.contains('active')) {
|
||||
blockDocumentationVersion.classList.remove('active');
|
||||
} else {
|
||||
blockDocumentationVersion.classList.add('active');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user