From: Arun Persaud Date: Sun, 24 Jan 2016 18:31:17 +0000 (-0800) Subject: clean up js a bit X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=f4f8a8f0166d617a289a77cc47fabf11d88069e9 clean up js a bit --- diff --git a/js/game.js b/js/game.js index 06457be..dd196a3 100644 --- a/js/game.js +++ b/js/game.js @@ -101,10 +101,8 @@ $(document).ready( }); $(".message div div").parent().click ( function() { $(this).hide(); }); - }); -/* look for swipes left/right */ -$().ready(function(){ + /* look for swipes left/right */ $("div.table").mousedown(function(e){ down_x = e.pageX; }); @@ -121,4 +119,5 @@ $().ready(function(){ $("div.table").bind('touchend', function(e){ do_swipe(); }); -}); + + });