Mercurial > code > home > repos > homeauto
view service/shuttlepro/gui.js @ 1462:2b29f14eb6bd
try new graph+view widget
Ignore-this: d5f9c5dc52f04324368716ba2f604fdb
darcs-hash:44e85a5c075ef73c34a58deaa3a3c1e8390dae52
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 24 Nov 2019 00:01:00 -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); })();