Code not running only on home - sage 8


#1

is there any reason so this code is works on all pages except home?

jQuery(window).scroll(function() {
var scroll = jQuery(this).scrollTop();

if (scroll >= 400 ) {
jQuery(‘body’).addClass(‘at__body_menu–scrolled’);
} else {
jQuery(‘body’).removeClass(‘at__body_menu–scrolled’);
}
});

There is no error I can see