This commit is contained in:
Ruben van de Ven 2018-10-30 23:17:08 +01:00
parent c9521c5503
commit f68dc8bd62

View file

@ -64,9 +64,9 @@
<h2 id="title">live bpm: <span id='value'>...</span></h2>
<div id='downloads'>
Data
<span><a href='/1h.csv'>Last hour</a></span>
<span><a href='/24h.csv'>Last day</a></span>
<span><a href='/week.csv'>Last week</a></span>
<span><a href='/1h.csv'>hour</a></span>
<span><a href='/24h.csv'>day</a></span>
<span><a href='/week.csv'>week</a></span>
</div>
<div id="graph">
@ -133,12 +133,14 @@ Plotly.d3.csv("/1h.csv", function(err, rows){
let tick = function() {
var duration = 10000;
con
if(currentBpm != null) {
audio.play();
duration = 60000 / currentBpm;
}
setTimeout(tick, duration);
}
tick();
});