Mercurial > code > home > repos > homeauto
view service/shuttlepro/gui.js @ 1523:0da337780f22
dep updates; graph url renames; and other build updates
Ignore-this: 4603ef3d8db650a13e543dad8580ade8
darcs-hash:0840491cd6a4e4966f47a2abca0ed30ec434022a
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 00:23:06 -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); })();