diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-11 19:39:05 -0500 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-11 19:39:05 -0500 |
commit | 4fbec5e87d3797b93b8fae750c5ce6519cddfa3b (patch) | |
tree | 37256cf4c793017b23b1cfbdf43b5cdfa11bfa37 /plugin/remotes | |
parent | 05499c8b8e0e7a88370a2b9766e0b0293211d5ca (diff) | |
download | perl-software-in-gnu-guix-4fbec5e87d3797b93b8fae750c5ce6519cddfa3b.tar perl-software-in-gnu-guix-4fbec5e87d3797b93b8fae750c5ce6519cddfa3b.tar.gz |
add touch based remote controlled plugin
Diffstat (limited to 'plugin/remotes')
-rw-r--r-- | plugin/remotes/remotes.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugin/remotes/remotes.js b/plugin/remotes/remotes.js new file mode 100644 index 0000000..a739bb2 --- /dev/null +++ b/plugin/remotes/remotes.js @@ -0,0 +1,19 @@ +/** + * Touch-based remote controller for your presentation courtesy + * of the folks at http://remotes.io + */ + +head.ready( 'remotes.ne.min.js', function() { + + new Remotes("preview") + .on("swipe-left", function(e){ Reveal.right(); }) + .on("swipe-right", function(e){ Reveal.left(); }) + .on("swipe-up", function(e){ Reveal.down(); }) + .on("swipe-down", function(e){ Reveal.up(); }) + .on("tap", function(e){ + Reveal.toggleOverview(); + }); + +} ); + +head.js( 'https://raw.github.com/Remotes/Remotes/master/dist/remotes.ne.min.js' );
\ No newline at end of file |