Skip to content

Commit

Permalink
highlight current column in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
illegalprime committed Jan 31, 2016
1 parent 88ad968 commit 8349c5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hackerz/css/hackerz.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ input:focus {
padding: 10px;
}

.chooser li.selected {
ul.selected li.selected {
background-color: #00ff00;
}

ul li.selected {
background-color: #00bb00;
color: black;
}

Expand Down
5 changes: 5 additions & 0 deletions hackerz/js/hackerz.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
}
$(menu[column].element).removeClass("selected");
$(menu[column].element).eq(menu[column].curr).addClass("selected");
if (column === menu.column[menu.column.curr]) {
$(menu[column].element).parent().addClass("selected");
} else {
$(menu[column].element).parent().removeClass("selected");
}
});
if (menu.users.last !== menu.users.curr) {
$("#user").val(menu.users[menu.users.curr]);
Expand Down

0 comments on commit 8349c5f

Please sign in to comment.