Skip to content

A live bird collage card for your Home Assistant dashboard.

cleanup spinner

frederikba2081148c04
diff --git a/homepage/views.php b/homepage/views.php
index 456d63e1..ae02933f 100644
--- a/homepage/views.php
+++ b/homepage/views.php
@@ -387,8 +387,7 @@ function getTheDate(increment) {
mm = d.getMonth() + 1; if (mm < 10) mm = "0" + mm;
dd = d.getDate(); if (dd < 10) dd = "0" + dd;
- swipeSpinner=document.getElementById("SwipeSpinner");
- swipeSpinner.setAttribute("src","images/spinner.gif");
+ document.getElementById("SwipeSpinner").hidden = false;
window.location = "/views.php?date="+yyyy+"-"+mm+"-"+dd+"&view=Daily+Charts";
}
diff --git a/scripts/history.php b/scripts/history.php
index f4288dac..48455bae 100644
--- a/scripts/history.php
+++ b/scripts/history.php
@@ -139,7 +139,7 @@ function submitID() {
<tr>
<th>Total Detections For The Day</th>
<td><?php echo $totalcount['COUNT(*)']; ?></td>
- <td><img id="SwipeSpinner" style="height:30px;"></td>
+ <td style="padding:unset"><img src="images/spinner.gif" id="SwipeSpinner" hidden style="height:30px;"></td>
</tr>
</table>
<?php // <br><button type="button" onclick="showDialog()">Export as CSV for eBird</button><br><br> ?>