Skip to content

Instantly share code, notes, and snippets.

@fluidglassml
Created June 14, 2014 18:53
Show Gist options
  • Save fluidglassml/08651c8c6a036cb8e3fd to your computer and use it in GitHub Desktop.
Save fluidglassml/08651c8c6a036cb8e3fd to your computer and use it in GitHub Desktop.
[wearscript] show id
<html style="width:100%; height:100%; overflow:hidden">
<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>-->
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0" bgcolor="#000">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
var tree;
function main() {
if (WS.scriptVersion(1)) return;
ctx = document.getElementById('canvas').getContext("2d");
tree = new WS.Cards();
tree.add(WS.groupDevice());
WS.cardTree(tree);
WS.displayCardTree();
// WS.serverConnect('{{WSUrl}}', server);
}
window.onload = main;
</script>
</body>
</html>
{"name":"Example"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment