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