view service/shuttlepro/gui.js @ 1415:a02b1b08f24f

clean up very old reasoning configs Ignore-this: 29c9a3145a640c8a71d4add8ee219fae darcs-hash:64a8a52854f34fc3ae932b796552795df31be1bb
author drewp <drewp@bigasterisk.com>
date Wed, 24 Jul 2019 01:12:29 -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);   
})();