src/js/hearthdrafter.js
//highlight card names when using arrow keys to select.
highlight card names when using arrow keys to select.
highlight card names when using arrow keys to select .
function highlightElement(index) {
    var list_ele = $("#cards");
    if (index > 4) {
        list_ele.scrollTop((index-5)*35);
    }
    $("li div:eq("+old_index+")").removeClass("ui-state-hover");
    $("li div:eq("+index+")").addClass("ui-state-hover");
}
function highlightElement ( index ) { var list_ele = $ ( "#cards" ) ; if ( index > 4 ) { list_ele . scrollTop ( ( index - 5 ) * 35 ) ; } $ ( "li div:eq(" + old_index + ")" ) . removeClass ( "ui-state-hover" ) ; $ ( "li div:eq(" + index + ")" ) . addClass ( "ui-state-hover" ) ; }
highlight card names when using arrow keys to select.
highlight card names when using arrow keys to select .