Mercurial > code > home > repos > homeauto
view service/shuttlepro/gui.js @ 1153:e4f49cd9dda3
add :pointsAtLeastEvery control
Ignore-this: 9d0236b56b2a7592211ca68b87b4a5d1
darcs-hash:76e4d358cb6b039351c9b6f8e3bb825aaaefcc57
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 15 Apr 2018 04:41:00 -0700 |
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); })();