listicle icon indicating copy to clipboard operation
listicle copied to clipboard

Added jQuery mobile and swipe

Open sgjudd opened this issue 10 years ago • 1 comments

Thought it would be useful to add swipe gestures so that users on touch devices could swipe to advance to next clue or go back to previous clue.

I included jQuery Mobile javascript from code.jquery.com (this could be changed if you prefer to host javascript files yourself.)

Added jQuery on() handlers to the idTextContainer div to catch swipeleft and swiperight events. Swiperight calls prevClue() and swipeleft calls nextClue().

sgjudd avatar Jan 21 '15 02:01 sgjudd

You can see the demo at http://juddtech.com/listicle2/

sgjudd avatar Jan 21 '15 03:01 sgjudd