graph.js.coffee 287 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 initGraphNav = -> $('.graph svg').css 'position', 'relative' $('body').bind 'keyup', (e) -> if e.keyCode is 37 # left $('.graph svg').animate left: '+=400' else if e.keyCode is 39 # right $('.graph svg').animate left: '-=400' window.initGraphNav = initGraphNav