Difference between revisions of "Team:Cambridge-JIC"
Line 73: | Line 73: | ||
var i=0; | var i=0; | ||
$("section.dotslide").each(function(){ | $("section.dotslide").each(function(){ | ||
− | if($(this).offset().top <= $("body").scrollTop()) { | + | if($(this).offset().top <= 0/*$("body").scrollTop()*/) { |
$(".sidebar-item").css("background", "none") | $(".sidebar-item").css("background", "none") | ||
$($(".sidebar-item").get(i)).css("background", "#555") | $($(".sidebar-item").get(i)).css("background", "#555") |
Revision as of 15:03, 16 September 2015