Mercurial > code > home > repos > homeauto
view service/shuttlepro/gui.js @ 1133:114ca7fd9d01
IR remote rule
Ignore-this: 901771de421a81129f2ddf4316af91d9
darcs-hash:a037a1bcf9631ac214fe1e61ff42fb00f25cb451
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 03 Feb 2018 14:38:10 -0800 |
parents | 9bb3eac740f0 |
children |
line wrap: on
line source
(function () { function abbreviateTrig(trig) { // prefixes, abbreviations, make everything into links, etc return trig; } var model = { current: ko.observable("...") }; model.refreshGraph = function() { $.ajax({ url: "graph", success: function(data) { model.current(abbreviateTrig(data)); } }); }; model.refreshGraph(); ko.applyBindings(model); })();