diff --git a/css/style.css b/css/style.css index 6d8a6e0b..c9a8e334 100644 --- a/css/style.css +++ b/css/style.css @@ -287,7 +287,7 @@ region.wavesurfer-region[data-region-highlight] { } footer { - position: fixed; + position: absolute; bottom: 0; height: 30px; text-align: center; diff --git a/index.html b/index.html index 10cd435a..c07fbdd3 100644 --- a/index.html +++ b/index.html @@ -984,7 +984,7 @@ -
+
date_range  diff --git a/js/ui.js b/js/ui.js index f4fc240d..7eed322d 100644 --- a/js/ui.js +++ b/js/ui.js @@ -220,12 +220,12 @@ async function loadAudioFile({ filePath = '', preserveResults = false }) { } -function updateSpec({ buffer, play = false, position = 0, resetSpec = false }) { +function updateSpec({ buffer, play = false, position = 0, resetSpec = true }) { showElement(['spectrogramWrapper'], false); wavesurfer.loadDecodedBuffer(buffer); wavesurfer.seekTo(position); play ? wavesurfer.play() : wavesurfer.pause(); - if (resetSpec) adjustSpecDims(true); + adjustSpecDims(true); showElement(['fullscreen']); } @@ -811,7 +811,6 @@ function refreshResultsView() { } else if (!fileList.length) { hideAll(); } - adjustSpecDims(true); } // fromDB is requested when circle clicked @@ -1037,7 +1036,6 @@ exploreLink.addEventListener('click', async () => { hideAll(); showElement(['exploreWrapper'], false); enableMenuItem(['saveCSV']); - adjustSpecDims(true) worker.postMessage({ action: 'update-state', globalOffset: 0, filteredOffset: {}}); // Analysis is done STATE.analysisDone = true; @@ -3032,7 +3030,8 @@ function onChartData(args) { const isUncertain = score < 65 ? '?' : ''; // result.filename and result.date used for feedback result.date = timestamp; - result.filename = cname.replace(/\\/g, '\\').replace(/'/g, "\\'") + `_${timestamp}`; + // this may need revision now we have custom lists + result.filename = cname.replace(/'/g, "\\'") + `_${timestamp}`; // store result for feedback function to use predictions[index] = result; // Format date and position for UI diff --git a/package.json b/package.json index d361d27a..a16f056b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "1.3.0", + "version": "1.3.1", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {