Нашел решение
jQuery(window).bind('hashchange', function() {
var section = location.hash;
if(section == '#section1' || section == '#section6'){
jQuery("header").addClass("filter");
jQuery(".sh-light-logo").hide();
jQuery(".sh-standard-logo").show();
}
if(section == '#section0' || section == '#section7'){
jQuery("header").removeClass("filter");
jQuery(".sh-light-logo").show();
jQuery(".sh-standard-logo").hide();
}
});
|