Skip to content

Commit

Permalink
Fix click-to-turn page; remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bloopletech committed Sep 4, 2012
1 parent 118d7bc commit c0b3bb1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions public/javascripts/application.js
Expand Up @@ -57,22 +57,14 @@ $(function() {
location.hash = "#" + index;
});

$("body").click(go_next_page);
$("body").click(function() {
$(window).trigger({ type: 'keydown', 'keyCode': 32 });
});

$("#nav-wrapper").click(function(event) {
event.stopPropagation();
});

$("#previous-page").mousedown(function() {
var current = parseInt($("#wrapper").css("margin-top"));
if(current < 0) $("#wrapper").css("margin-top", (current + vheight()) + "px");
});

$("#next-page").mousedown(function() {
var current = parseInt($("#wrapper").css("margin-top"));
if((current - vheight()) > -pheight()) $("#wrapper").css("margin-top", (current - vheight()) + "px");
});

/*setTimeout(function() {
scrollTo(200, 0);
}, 1);
Expand Down

0 comments on commit c0b3bb1

Please sign in to comment.