I successfully converted my mobile menu's JS code to jQuery, and it's working fine! However, this conversion has led to two minor issues. The jQuery code is not provided in the snippet below as it doesn't showcase the problems. I am utilizing jQuery 3.4.1.
Upon clicking the mobile menu, the nav menu on tablet/desktop disappears.
The hamburger menu, which is supposed to spin upon click (using third-party code), is now static and doesn't move.
As the issue cannot be replicated in the code snippet given, you can see it live in action by visiting this link: https://i.sstatic.net/hXqxm.jpg.
The code provided below generates no console errors when jQuery is included. Can someone assist me in identifying what needs to be fixed?