Forgot to add the example app. Works with the script

This commit is contained in:
Joe Bowser
2012-07-20 09:57:26 -07:00
parent 29ae492983
commit 93ec092eaf
4 changed files with 137 additions and 58 deletions
@@ -0,0 +1,15 @@
var app = {
initialize: function() {
this.bind();
},
bind: function() {
document.addEventListener('deviceready', this.deviceready, false);
},
deviceready: function() {
app.report('deviceready');
},
report: function(id) {
document.querySelector('#' + id + ' .pending').classList.add('hide');
document.querySelector('#' + id + ' .complete').classList.remove('hide');
}
};