Skip to content

Instantly share code, notes, and snippets.

@yyolk
Forked from greymechanic/hornetController.js
Last active December 20, 2015 07:49
Show Gist options
  • Save yyolk/6095968 to your computer and use it in GitHub Desktop.
Save yyolk/6095968 to your computer and use it in GitHub Desktop.
hornet
loadedInterfaceName = "template";
interfaceOrientation = "portrait";
pages = [[
{
"name": "refresh",
"type": "Button",
"bounds": [.6, .9, .2, .1],
"startingValue": 0,
"isLocal": true,
"mode": "contact",
"ontouchstart": "interfaceManager.refreshInterface()",
"stroke": "#aaa",
"label": "refrsh",
},
{
"name": "tabButton",
"type": "Button",
"bounds": [.8, .9, .2, .1],
"mode": "toggle",
"stroke": "#aaa",
"isLocal": true,
"ontouchstart": "if(this.value == this.max) { control.showToolbar(); } else { control.hideToolbar(); }",
"label": "menu",
},
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment