From 641cc3aee4ba1c62dd8c0ad6039158a69433044c Mon Sep 17 00:00:00 2001 From: Mauricio Wolff Date: Thu, 14 Nov 2013 19:25:06 -0200 Subject: [PATCH 1/2] Added fullscreen demo --- README.md | 2 + demo/fullscreen/index.html | 90 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 demo/fullscreen/index.html diff --git a/README.md b/README.md index f1c7a95..ff445b1 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Virtually infinite loop-able horizontal carousel for desktop and mobile browsers Read more at [cubiq.org](http://cubiq.org/swipeview) +FullScreen Demo: [http://bitbonsai.com/swipeview/fullscreen](http://bitbonsai.com/swipeview/fullscreen/) + Gallery Demo: [http://cubiq.org/dropbox/SwipeView/demo/gallery](http://cubiq.org/dropbox/SwipeView/demo/gallery) eReader Demo: [http://cubiq.org/dropbox/SwipeView/demo/ereader](http://cubiq.org/dropbox/SwipeView/demo/ereader) diff --git a/demo/fullscreen/index.html b/demo/fullscreen/index.html new file mode 100644 index 0000000..f4f4052 --- /dev/null +++ b/demo/fullscreen/index.html @@ -0,0 +1,90 @@ + + + + + + SwipeView Full Screen Test (images from flickr) + + + +
+ + + + + + \ No newline at end of file From 169cd859fc4ccedae117b59c6b1ad1e675f9a18c Mon Sep 17 00:00:00 2001 From: Mauricio Wolff Date: Wed, 27 Nov 2013 18:06:35 -0200 Subject: [PATCH 2/2] Added arrow keys to swipe --- demo/fullscreen/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/demo/fullscreen/index.html b/demo/fullscreen/index.html index f4f4052..0609841 100644 --- a/demo/fullscreen/index.html +++ b/demo/fullscreen/index.html @@ -86,5 +86,19 @@ } }); +// also get arrow keys... +document.onkeydown = function() { + switch (window.event.keyCode) { + case 37: + case 38: + window.carousel.prev() + break; + case 39: + case 40: + window.carousel.next() + break; + } +}; + \ No newline at end of file