0

This is not a menu!!!

There are icons and contact information in a sidebar on this website. And it is in a secret structure. When I click on the hamburger menu the sidebar opens and when I click on the hamburger icon again the field closes. But when I click on any area without clicking the icon, I want this area to be closed. And unfortunately I looked everywhere. I tried and tested. The result is frustration.

$('.hamburger-menu').on('click', function (e) {
  $(this).toggleClass('open');
  $(".side-widget").toggleClass('active');
  $("body").toggleClass("overflow");
  
});
Adam
  • 1
  • 1
  • The problem was not solved, the related issues did not solve the problem. How will I generate the code according to this code. – Adam May 18 '22 at 13:12

0 Answers0