JS refresh of most recent detection

Hello!

I've gone ahead and implemented some JS into overview.php that will automatically refresh the most recent audio detection, if there is a newer one. This means you don't have to manually refresh overview anymore.

Open to feedback/suggestions!
-Ethan
This commit is contained in:
ehpersonal38
2022-04-16 10:27:04 -04:00
parent 6206828af2
commit a3f2fe943c
2 changed files with 78 additions and 15 deletions
-1
View File
@@ -143,7 +143,6 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
<script>
function loadDetections(detections_limit, element=undefined) {
console.log(element);
const xhttp = new XMLHttpRequest();
xhttp.onload = function() {
if(typeof element !== "undefined")