Last active
June 9, 2018 16:22
-
-
Save callmephilip/3741349 to your computer and use it in GitHub Desktop.
Remotes integration example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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