Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created March 27, 2014 20:38
Show Gist options
  • Save bwhite/9818091 to your computer and use it in GitHub Desktop.
Save bwhite/9818091 to your computer and use it in GitHub Desktop.
[wearscript] Bug: Proof of concept for BT swipe, if you use Ctrl+Enter to run this it won't go right, but if you ALT+Enter after it does
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function server() {
WS.control('SWIPE_RIGHT', false);
}
function main() {
if (WS.scriptVersion(1)) return;
WS.serverConnect('{{WSUrl}}', server);
}
window.onload = main;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment