/**
 * 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' );
@@ -104,16 +104,427 @@
 io%0A */%0A%0A
+(function(window)%7B%0A%0A    /**%0A     * Detects if we are dealing with a touch enabled device (with some false positives)%0A     * Borrowed from modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touch.js   %0A     */%0A    var hasTouch  = (function()%7B%0A        return ('ontouchstart' in window) %7C%7C window.DocumentTouch && document instanceof DocumentTouch;%0A    %7D)();%0A%0A    if(!hasTouch)%7B%0A        
 head.rea
@@ -565,11 +565,20 @@
 ) %7B%0A
-%09%0A%09
+            
 new 
@@ -596,18 +596,32 @@
 eview%22)%0A
-%09%09
+                
 .on(%22swi
@@ -654,34 +654,48 @@
 eal.right(); %7D)%0A
-%09%09
+                
 .on(%22swipe-right
@@ -724,26 +724,40 @@
 .left(); %7D)%0A
-%09%09
+                
 .on(%22swipe-u
@@ -787,26 +787,40 @@
 .down(); %7D)%0A
-%09%09
+                
 .on(%22swipe-d
@@ -854,18 +854,32 @@
 p(); %7D)%0A
-%09%09
+                
 .on(%22tap
@@ -899,11 +899,28 @@
 )%7B %0A
-%09%09%09
+                    
 Reve
@@ -945,29 +945,58 @@
 ); %0A
-%09%09%7D);%0A%0A%7D );%0A%0A
+                %7D);%0A        %7D );%0A%0A        
 head.js(
  'ht
@@ -991,17 +991,16 @@
 head.js(
- 
 'https:/
@@ -1061,11 +1061,28 @@
 .min.js'
- 
+);%0A    %7D%0A%7D)(window
 );

disable remotes plugin on mobile