Skip to content

Instantly share code, notes, and snippets.

@coryk135
Created December 2, 2014 16:19
Show Gist options
  • Save coryk135/b7de002ee4c26c5d5e12 to your computer and use it in GitHub Desktop.
Save coryk135/b7de002ee4c26c5d5e12 to your computer and use it in GitHub Desktop.
[wearscript] WearScript Template
<html>
<head>
<!-- You can include external scripts here like so... -->
<!--<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>-->
<style>
html, body { width: 100%; height 100%; overflow: hidden; margin: 0; background-color: black; }
</style>
</head>
<body>
<script>
window.onload = main;
function main() {
if (WS.scriptVersion(1)) return;
WS.serverConnect('{{WSUrl}}', serverConnected);
}
function serverConnected() {
WS.sound('SUCCESS');
}
</script>
</body>
</html>
{"name":"Example"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment