diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-05-30 14:40:44 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-05-30 14:40:44 +0300 |
| commit | a9426c53d8e6ee34cf1187aed579aa438e58f1d0 (patch) | |
| tree | 4e8aa17c00c4df6be67707ab7f89cf076fbbb95d | |
| parent | 2c3ee62609ef9b61e4f60147c6c6d2b0f823e5b0 (diff) | |
Value not working
| -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(); |
