remotes.js 536 B

12345678910111213141516171819
  1. /**
  2. * Touch-based remote controller for your presentation courtesy
  3. * of the folks at http://remotes.io
  4. */
  5. head.ready( 'remotes.ne.min.js', function() {
  6. new Remotes("preview")
  7. .on("swipe-left", function(e){ Reveal.right(); })
  8. .on("swipe-right", function(e){ Reveal.left(); })
  9. .on("swipe-up", function(e){ Reveal.down(); })
  10. .on("swipe-down", function(e){ Reveal.up(); })
  11. .on("tap", function(e){
  12. Reveal.toggleOverview();
  13. });
  14. } );
  15. head.js( 'https://raw.github.com/Remotes/Remotes/master/dist/remotes.ne.min.js' );