Skip to content

Instantly share code, notes, and snippets.

Last active May 26, 2016
What would you like to do?
[wearscript] Scan a QR code with Glass and have links open in tabs on your phone/laptop
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
function qr(data, format) {
WS.publish('urlopen', atob(data));
function server() {
WS.say('Scan a QR Code');
function main() {
if (WS.scriptVersion(1)) return;
WS.serverConnect('{{WSUrl}}', 'server');
window.onload = main;
"name": "QR Scanner"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment