Hi , I have a site with 3 pages , 2 of them are kinda the same the problem is that I add this code to my JavaScript
[code]const closeNav = () => {
$(‘.nav-links’).removeClass(‘nav-active’);
};
const toggleAnimation = () => {
$(‘.burger’).toggleClass(‘animation’);
};
const closeOnClick = () => {
$(‘.nav-links a’).on(‘click’, () => {
closeNav();
toggleAnimation();
})
};
//Call changeLink function
closeOnClick();
and it works fine for 1 page but is not working for the other page . The code is for the nav make , it make it close when you lick on a tag. What happens on the other page is that makes the nav bar to no open at all.
Here is the site:
I am wondering if this ever happened to you ?