diff --git a/cps/static/js/kthoom.js b/cps/static/js/kthoom.js index 33a2ac0e..40db69ab 100644 --- a/cps/static/js/kthoom.js +++ b/cps/static/js/kthoom.js @@ -635,6 +635,14 @@ function init(filename) { // Focus the scrollable area so that keyboard scrolling work as expected $("#mainContent").focus(); + $("#mainContent").swipe( { + swipeRight:function() { + showLeftPage(); + }, + swipeLeft:function() { + showRightPage(); + }, + }); $("#mainImage").click(function(evt) { // Firefox does not support offsetX/Y so we have to manually calculate // where the user clicked in the image. diff --git a/cps/templates/readcbr.html b/cps/templates/readcbr.html index 29508fbf..35943b34 100644 --- a/cps/templates/readcbr.html +++ b/cps/templates/readcbr.html @@ -13,14 +13,10 @@ + - - - - - - + +