/**
 * @license Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */

export function rwdButton() {
	// Handle the mobile menu button.
	const rwdButton = document.querySelector( '.header__main-rwd-button a' );
	const rwdTop = document.querySelector( '.top' );

	rwdButton.addEventListener( 'click', e => {
		e.preventDefault();
		rwdTop.classList.toggle( 'rwd-menu-active' );
	} );
}
