gitlab-org--gitlab-foss/app/assets/javascripts/graph.js
2012-06-22 23:29:31 +03:00

10 lines
304 B
JavaScript

function initGraphNav() {
$(".graph svg").css("position", "relative");
$("body").bind("keyup", function(e) {
if(e.keyCode == 37) { // left
$(".graph svg").animate({ left: "+=400" });
} else if(e.keyCode == 39) { // right
$(".graph svg").animate({ left: "-=400" });
}
});
}