Skip to content

Instantly share code, notes, and snippets.

@scottgwald
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save scottgwald/9586994 to your computer and use it in GitHub Desktop.

Select an option

Save scottgwald/9586994 to your computer and use it in GitHub Desktop.
[wearscript] stop wearscript
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.say("Stopping Wear Script");
WS.shutdown();
}
window.onload = main;
</script>
</body>
</html>
{
"name": "Stop WearScript"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment