Skip to content

Instantly share code, notes, and snippets.

@fluidglassml
Created May 23, 2014 02:36
Show Gist options
  • Save fluidglassml/1952cac90e6c0ce5af64 to your computer and use it in GitHub Desktop.
Save fluidglassml/1952cac90e6c0ce5af64 to your computer and use it in GitHub Desktop.
[wearscript] float some cards
<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">
<script>
var tree;
function main() {
if (WS.scriptVersion(1)) return;
console.log("Hello 209825098");
var tree = new WS.Cards();
tree.add("Test", "card", undefined, undefined, 'shutdown', function() {WS.shutdown();});
WS.cardTree(tree);
WS.displayCardTree();
}
window.onload = main;
</script>
</body>
</html>
{"name":"Float Cards"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment