I’m having trouble in the Content JS section.
I want the logo in the menu to change classes when it scrolls to the top.
i find it will work in the editor but not in the front end.
https://adamnet.works/dnsharmony
(function) {
var menu = (".menu-item-282");
(window).scroll(function() {
var scroll = $(window).scrollTop();
console.log(“got here!!”);
if (scroll >= 500) {
menu.removeClass(“menu-logo-grey”).addClass(“menu-logo”);
} else {
menu.removeClass(“menu-logo”).addClass(“menu-logo-grey”);
}
});
};