var app = { | |
// Application Constructor | |
initialize: function() { | |
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); | |
}, | |
onDeviceReady: function() { | |
var uid = window.localStorage.getItem("token"); | |
var qrcode = new QRCode(document.getElementById("qrcode"), { | |
text: uid, | |
width: 150, | |
height: 150, | |
colorDark : "#000000", | |
colorLight : "#ffffff", | |
correctLevel : QRCode.CorrectLevel.L | |
}); | |
}, | |
toBillDetail :function(refno){ | |
} | |
}; | |
app.initialize(); |