gitlab-org--gitlab-foss/app/assets/javascripts/graph.js

10 lines
251 B
JavaScript
Raw Normal View History

2012-05-31 16:30:54 -04:00
function initGraphNav() {
$("body").keydown(function(e) {
if(e.keyCode == 37) { // left
$(".graph svg").animate({ left: "+=400" });
} else if(e.keyCode == 39) { // right
$(".graph svg").animate({ left: "-=400" });
}
});
}