Skip to content

Commit

Permalink
#64 Trial & Error
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed May 4, 2020
1 parent b1bbb5d commit d0f24c2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions xtcryptosignals/client/templates/tools/coin-token.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@
<script type="text/javascript">
const fs = {{ frequencies_charts|safe }};
$(document).ready(function() {
for (let i in fs) {
setTimeout(function () {
get_chart_coin_or_token_data(render_data_charts, '{{ coin_or_token }}', fs[i]);
}, i * 500);
}
draw_charts()
});
</script>

<script type="text/javascript">
function draw_charts() {
for (let i in fs) {
setTimeout(function () {
get_chart_coin_or_token_data(render_data_charts, '{{ coin_or_token }}', fs[i]);
}, i * 500);
}
}
</script>

<script type="text/javascript">
socket.on('connect', function() {
for (let i in charts) {
charts[i].redraw();
}
draw_charts()
});
</script>

Expand Down

0 comments on commit d0f24c2

Please sign in to comment.