Team:Cornell/sandbox
From 2013.igem.org
(Difference between revisions)
Line 339: | Line 339: | ||
if (e.which == 40 || e.which == 39) { | if (e.which == 40 || e.which == 39) { | ||
alert($("#second-last-screen").css('left')); | alert($("#second-last-screen").css('left')); | ||
+ | alert($("#second-last-screen").css('left') > '-1'); | ||
if($("#second-last-screen").css('left') > '-1') { //only scroll if we haven't reached the far right | if($("#second-last-screen").css('left') > '-1') { //only scroll if we haven't reached the far right | ||
scroll($(".parallax, .screen"), 0); | scroll($(".parallax, .screen"), 0); | ||
- | |||
} | } | ||
Revision as of 20:04, 1 January 2014