diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/home.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/home.html b/templates/home.html index 549b1d3..6039089 100644 --- a/templates/home.html +++ b/templates/home.html @@ -14,6 +14,10 @@ function load_data() { $.get('/data', function(res) { console.log(res); + $('#speed-slider').slider({ + tooltip: 'always', + value: res.tempo + }); }); }; @@ -57,10 +61,6 @@ $('#tree-btns').append($('<button type="button" class="btn btn-default tree-btn" data-tree="' + i + '">Tree ' + i + '</button>')); }); - $('#speed-slider').slider({ - tooltip: 'always' - }); - $('.tree-btn').click(function() { var tree = $(this).attr('data-tree'); $('.light-tree').hide(); |
