A live bird collage card for your Home Assistant dashboard.
centered history
mcguirepr89500eade8cea6
diff --git a/homepage/style.css b/homepage/style.cssindex b0267bab..6fdacef4 100644--- a/homepage/style.css+++ b/homepage/style.css@@ -21,6 +21,19 @@margin-right: auto;}+.banner img {+ position: absolute;+ top: 0;+ left: 0;+ padding: 10px;+}++.banner a {+ text-decoration: none;+ color: black;+ font-size: x-large;+}+.topbar {display: block;width: auto;@@ -57,12 +70,14 @@}.play table {+ display: block;width:50%;margin-right: auto;margin-left: auto;}.overview td {+ vertical-align:middle;width:20%;}@@ -71,7 +86,17 @@}.stats table {- width: 100%;+ width: 75%;+}++.stats td {+ vertical-align: middle;+}++.history table,.history img {+ width: auto;+ margin-left: auto;+ margin-right: auto;}a {@@ -98,7 +123,6 @@ table {border-collapse: collapse;border-spacing: 0;width: 100%;-/* border: 1px solid black;*/}td {@@ -179,7 +203,7 @@ body::-webkit-scrollbar {}@media screen and (max-width: 600px) {- .play table,.overview table {+ .play table,.overview table,.stats table {width: 100%;}.topnav button {@@ -196,7 +220,7 @@ body::-webkit-scrollbar {}@media screen and (max-width: 600px) {- .play table,.overview table {+ .play table,.overview table,.stats table {width: 100%;}.topnav button {diff --git a/scripts/history.php b/scripts/history.phpindex e184ba5f..1063509e 100644--- a/scripts/history.php+++ b/scripts/history.php@@ -26,19 +26,17 @@ $totalcount = $result1->fetchArray(SQLITE3_ASSOC);</style></head><body>+<div class="history centered"><form action="" method="POST"><input type="date" name="date" value="<?php echo $theDate;?>"><button type="submit" name="view" value="Daily Charts">Submit Date</button></form>-<div><table><tr><th>Total Detections For The Day</th><td><?php echo $totalcount['COUNT(*)'];?></td></tr></table>-</div>-<?phpif (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {echo "<img src=\"/Charts/$chart?nocache=time()\" >";@@ -51,4 +49,5 @@ if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart2)) {} else {echo "<p>No Charts For $theDate</p>";}?>+</div></html>