opensearch-docs-cn/assets/js/header-nav.js

3 lines
125 B
JavaScript

document.querySelector('.menu-button')?.addEventListener('click', el => {
el.currentTarget.classList.toggle('active');
});