Sha256: fa119d8c5cfc36edd193666715036413396fcbb3761e1fd53f8b2944993d3ce1
Contents?: true
Size: 981 Bytes
Versions: 2
Compression:
Stored size: 981 Bytes
Contents
(function (exports) { var localeventbus; var data; exports.init = function (eventbus) { localeventbus = eventbus; if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function (str) { return this.indexOf(str) == 0; }; } eventbus.on("ui.update", function (data) { document.getElementById("temperature").innerHTML = data.model.temperature; setTemperature(data.model.temperature); document.getElementById("pressure").innerHTML = data.model.pressure; setPressure(data.model.pressure); document.getElementById("humidity").innerHTML = data.model.humidity; setHumidity(data.model.humidity); document.getElementById("lux").innerHTML = data.model.lux; setLux(data.model.lux); }); }; })(typeof exports == 'undefined' ? this['ui'] = {} : exports);
Version data entries
2 entries across 2 versions & 1 rubygems