aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-11-11 19:39:05 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-11-11 19:39:05 -0500
commit4fbec5e87d3797b93b8fae750c5ce6519cddfa3b (patch)
tree37256cf4c793017b23b1cfbdf43b5cdfa11bfa37 /plugin
parent05499c8b8e0e7a88370a2b9766e0b0293211d5ca (diff)
downloadfreenode-live-2017-presentation-4fbec5e87d3797b93b8fae750c5ce6519cddfa3b.tar
freenode-live-2017-presentation-4fbec5e87d3797b93b8fae750c5ce6519cddfa3b.tar.gz
add touch based remote controlled plugin
Diffstat (limited to 'plugin')
-rw-r--r--plugin/remotes/remotes.js19
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