Permalink
Browse files

attempt to fix timings

  • Loading branch information...
1 parent f04943a commit f909403981e36fa9531f922d9221d48885cb1a04 @chriscoyier chriscoyier committed Mar 11, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 scripts/slide.js
View
@@ -1,7 +1,5 @@
$(window).load(function() {
- // Would be nice if this would delay a little bit if it fires too fast
- // ... like a minimum time (if page is cached)
- $("html").addClass("loaded");
+ $("html").addClass("loaded");
});
function gotoThere(link) {
@@ -10,13 +8,13 @@ function gotoThere(link) {
$("#previous, #next").click(function(e) {
$("html").addClass("leaving");
- setTimeout(gotoThere, 400, this.href);
+ setTimeout(gotoThere, 1500, this.href);
return false;
});
$("#jumper").change(function() {
$("html").addClass("leaving");
- setTimeout(gotoThere, 400, $(this).val());
+ setTimeout(gotoThere, 1500, $(this).val());
});
$(document).keydown(function(e) {

0 comments on commit f909403

Please sign in to comment.