gitlabhq/app/assets/javascripts/graph.js

11 lines
304 B
JavaScript
Raw Normal View History

2012-05-31 22:30:54 +02:00
function initGraphNav() {
2012-06-22 22:29:31 +02:00
$(".graph svg").css("position", "relative");
$("body").bind("keyup", function(e) {
2012-05-31 22:30:54 +02:00
if(e.keyCode == 37) { // left
$(".graph svg").animate({ left: "+=400" });
} else if(e.keyCode == 39) { // right
$(".graph svg").animate({ left: "-=400" });
}
});
}