+
+/* look for swipes left/right */
+$().ready(function(){
+ $("div.table").mousedown(function(e){
+ down_x = e.pageX;
+ });
+ $("div.table").mouseup(function(e){
+ up_x = e.pageX;
+ do_swipe();
+ });
+ $("div.table").bind('touchstart', function(e){
+ down_x = e.originalEvent.touches[0].pageX;
+ });
+ $("div.table").bind('touchmove', function(e){
+ up_x = e.originalEvent.touches[0].pageX;
+ });
+ $("div.table").bind('touchend', function(e){
+ do_swipe();
+ });
+});