Skip to content

Commit

Permalink
Stabilized Colors During Highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayson Vantuyl committed Mar 3, 2009
1 parent 908f126 commit 76d0132
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion html/interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,21 @@ $(function(){

do {
if (parent.hasClass('hotzone')) {
i++;
}
parent = parent.parent()
} while (parent.size());

parent = $(this);
do {
if (parent.hasClass('hotzone')) {
i--;
parent.addClass('hovered' + i);
targets = parent.attr('target').split(',');
for (j = 0; j<targets.length; j++) {
var target = $('#comment_' + targets[j]);
target.addClass('thover' + i);
};
i++;
}
parent = parent.parent()
} while (parent.size());
Expand Down

0 comments on commit 76d0132

Please sign in to comment.