Spectro things
Putting Spectrogram more towards the left makes sense to me, that way from left to right it's current detections -----> past detections.
This commit is contained in:
+3
-3
@@ -12,6 +12,9 @@ body::-webkit-scrollbar {
|
|||||||
<form action="" method="GET" id="views">
|
<form action="" method="GET" id="views">
|
||||||
<button type="submit" name="view" value="Today's Detections" form="views">Today's Detections</button>
|
<button type="submit" name="view" value="Today's Detections" form="views">Today's Detections</button>
|
||||||
</form>
|
</form>
|
||||||
|
<form action="" method="GET" id="views">
|
||||||
|
<button type="submit" name="view" value="Spectrogram" form="views">Spectrogram</button>
|
||||||
|
</form>
|
||||||
<form action="" method="GET" id="views">
|
<form action="" method="GET" id="views">
|
||||||
<button type="submit" name="view" value="Species Stats" form="views">Best Recordings</button>
|
<button type="submit" name="view" value="Species Stats" form="views">Best Recordings</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -24,9 +27,6 @@ body::-webkit-scrollbar {
|
|||||||
<form action="" method="GET" id="views">
|
<form action="" method="GET" id="views">
|
||||||
<button type="submit" name="view" value="Recordings" form="views">Recordings</button>
|
<button type="submit" name="view" value="Recordings" form="views">Recordings</button>
|
||||||
</form>
|
</form>
|
||||||
<form action="" method="GET" id="views">
|
|
||||||
<button type="submit" name="view" value="Spectrogram" form="views">Spectrogram</button>
|
|
||||||
</form>
|
|
||||||
<form action="" method="GET" id="views">
|
<form action="" method="GET" id="views">
|
||||||
<button type="submit" name="view" value="View Log" form="views">View Log</button>
|
<button type="submit" name="view" value="View Log" form="views">View Log</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
+17
-6
@@ -36,13 +36,19 @@ window.onload = function(){
|
|||||||
document.getElementById('player').remove();
|
document.getElementById('player').remove();
|
||||||
|
|
||||||
player = audioelement;
|
player = audioelement;
|
||||||
} else {
|
if (started) return;
|
||||||
player = document.getElementById('player');
|
|
||||||
}
|
|
||||||
player.play();
|
|
||||||
if (started) return;
|
|
||||||
started = true;
|
started = true;
|
||||||
initialize();
|
initialize();
|
||||||
|
} else {
|
||||||
|
player = document.getElementById('player');
|
||||||
|
player.oncanplay = function() {
|
||||||
|
if (started) return;
|
||||||
|
started = true;
|
||||||
|
initialize();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
player.play();
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -95,7 +101,12 @@ function initialize() {
|
|||||||
|
|
||||||
ANALYSER.fftSize = 2048;
|
ANALYSER.fftSize = 2048;
|
||||||
|
|
||||||
process();
|
|
||||||
|
try{
|
||||||
|
process();
|
||||||
|
} catch(e) {
|
||||||
|
window.top.location.reload();
|
||||||
|
}
|
||||||
|
|
||||||
function process() {
|
function process() {
|
||||||
const SOURCE = ACTX.createMediaElementSource(player);
|
const SOURCE = ACTX.createMediaElementSource(player);
|
||||||
|
|||||||
Reference in New Issue
Block a user