cleanup: propery close <pre> tag

This commit is contained in:
frederik
2024-12-01 15:09:37 +01:00
committed by Nachtzuster
parent 57c0d5b208
commit 6d0c607e78
+1 -1
View File
@@ -34,7 +34,7 @@ $max_upload_size = floor(disk_free_space("$home/BirdNET-Pi/") / 1.001);
var seconds = 0; var seconds = 0;
function update() { function update() {
if(confirm('Are you sure you want to update?')) { if(confirm('Are you sure you want to update?')) {
setInterval(function(){ seconds += 1; document.getElementById('updatebtn').innerHTML = "Updating: <pre id='timer' class='bash'>"+new Date(seconds * 1000).toISOString().substring(14, 19)+"</span>"; }, 1000); setInterval(function(){ seconds += 1; document.getElementById('updatebtn').innerHTML = "Updating: <pre id='timer' class='bash'>"+new Date(seconds * 1000).toISOString().substring(14, 19)+"</pre>"; }, 1000);
return true; return true;
} else { } else {
return false; return false;