2024-05-19 19:47:02 +05:00
|
|
|
let blockDocumentationVersion = document.querySelector('#documentation-version');
|
2024-07-26 22:06:21 +05:00
|
|
|
if (blockDocumentationVersion) {
|
|
|
|
blockDocumentationVersion.querySelector('.documentation-version__button').addEventListener('click', (e) => {
|
|
|
|
if (blockDocumentationVersion.classList.contains('active')) {
|
|
|
|
blockDocumentationVersion.classList.remove('active');
|
|
|
|
} else {
|
|
|
|
blockDocumentationVersion.classList.add('active');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|