Skip to content

Instantly share code, notes, and snippets.

@callmephilip
Last active June 9, 2018 16:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callmephilip/3741349 to your computer and use it in GitHub Desktop.
Save callmephilip/3741349 to your computer and use it in GitHub Desktop.
Remotes integration example
<script src="https://s3.amazonaws.com/remoats/scripts/github/remotes.ne.min.js"></script>
<script>
new Remotes("preview")
.on("swipe-left", function(e){
/* what happens when i swipe left on my phone? */
})
.on("swipe-right", function(e){
/* what happens when i swipe right on my phone? */
})
.on("swipe-up", function(e){
/* let's go up */
})
.on("swipe-down", function(e){
/* it's going down */
})
.on("tap", function(e){
/* and the screen explodes */
})
.on("hold", function(e){
/* hold on */
})
.on("release", function(e){
/* hands off */
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment