Sha256: e8eb7aca82b32867710dd04ecaf72e4df84a7892859fc3870327557aa2499886
Contents?: true
Size: 759 Bytes
Versions: 20
Compression:
Stored size: 759 Bytes
Contents
var app = { initialize: function() { this.bind(); }, bind: function() { document.addEventListener('deviceready', this.deviceready, false); }, deviceready: function() { // note that this is an event handler so the scope is that of the event // so we need to call app.report(), and not this.report() app.report('deviceready'); }, report: function(id) { console.log("report:" + id); // hide the .pending <p> and show the .complete <p> document.querySelector('#' + id + ' .pending').className += ' hide'; var completeElem = document.querySelector('#' + id + ' .complete'); completeElem.className = completeElem.className.split('hide').join(''); } };
Version data entries
20 entries across 4 versions & 1 rubygems