Skip to content

Instantly share code, notes, and snippets.

View kevbtu's full-sized avatar

Kevin Tu kevbtu

  • MIT
  • United States
View GitHub Profile
@kevbtu
kevbtu / glass.html
Last active August 29, 2015 13:58
[wearscript] Hello World
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function server() {
WS.displayCardTree();
var select = function () {WS.say('select')};
var tap = function () {};
var select = function (n) {return function () {WS.say('select ' + n);WS.log('select ' + n)}};
var log = function (n) {return function () {WS.log('log ' + n)}};
var tap = function (n) {return function () {WS.say('tap ' + n);WS.log('tap ' + n)}};
var currentGame = "lines"
var serverURL = "http://golden-ticket.media.mit.edu:8000";
function select(game){
document.getElementById(currentGame).setAttribute("class","");
document.getElementById(game).className="active";
currentGame = game;
}
function insertPerformer(uname,content,screen){
// sanitized name
@kevbtu
kevbtu / glass.html
Created March 3, 2014 23:52 — forked from scottgwald/glass.html
[wearscript] Card Tree Example
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function server() {
WS.displayCardTree();
var select = function () {WS.say('select')};
var tap = function () {};
var select = function (n) {return function () {WS.say('select ' + n);WS.log('select ' + n)}};
var log = function (n) {return function () {WS.log('log ' + n)}};
var tap = function (n) {return function () {WS.say('tap ' + n);WS.log('tap ' + n)}};