- From: Pulzar1989 <notifications@github.com>
- Date: Fri, 16 Sep 2016 00:00:57 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
Received on Friday, 16 September 2016 07:01:34 UTC
if(optionLocs[index][0] <= scrollTop && scrollTop <= optionLocs[index][1]){
if(direction == "up"){
$("#"+id).addClass("active");
$("#"+optionLocs[index+1][2]).removeClass("active");
} else if(index > 0) {
$("#"+id).addClass("active");
$("#"+optionLocs[index-1][2]).removeClass("active");
} else if(direction == undefined){
$("#"+id).addClass("active");
}
$.each(optionLocs, function(i){
if(id != optionLocs[i][2]){
console.log(i);
$("#"+optionLocs[i][2]).removeClass("active");
}
});
}
};
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/91
Received on Friday, 16 September 2016 07:01:34 UTC