view service/shuttlepro/gui.js @ 799:e0e623c01a69

ts build is part of docker now; new web debug console
author drewp@bigasterisk.com
date Fri, 01 Jan 2021 14:17:12 -0800
parents 57ae7dc0f417
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);   
})();