diff options
Diffstat (limited to 'gui/static/stats.js')
-rw-r--r-- | gui/static/stats.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gui/static/stats.js b/gui/static/stats.js deleted file mode 100644 index 7b07099..0000000 --- a/gui/static/stats.js +++ /dev/null @@ -1,17 +0,0 @@ -var updatefunc = function(event) { - $('#statdata p').remove(); - $.getJSON('/stats.json', function(result) { - $.each(result, function(name) { - // TODO: use a hidden template inside the DOM instead - // of building the HTML here - $("<p></p>") - .append(result[name]['inputstat']['num_underruns']) - .appendTo('#statdata'); - }); - }); -} - -// Handle clicks on the to change visiblity of panes -setInterval(updatefunc, 1000); - - |