A live bird collage card for your Home Assistant dashboard.
just removing the scroll bar now that @ehpersonal38 ethan is making things so usable. scroll bars are for when stuff sucks
mcguirepr89486cc32b99a1
diff --git a/homepage/images/version.svg b/homepage/images/version.svgdeleted file mode 100644index df1dcf84..00000000--- a/homepage/images/version.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20" role="img" aria-label="Version: 0.13"><title>Version: 0.13</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="51" height="20" fill="#555"/><rect x="51" width="35" height="20" fill="pink"/><rect width="86" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="265" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="410">Version</text><text x="265" y="140" transform="scale(.1)" fill="#fff" textLength="410">Version</text><text aria-hidden="true" x="675" y="150" fill="#ccc" fill-opacity=".3" transform="scale(.1)" textLength="250">0.13</text><text x="675" y="140" transform="scale(.1)" fill="#333" textLength="250">0.13</text></g></svg>\ No newline at end of filediff --git a/homepage/index.php b/homepage/index.phpindex 67d45cae..85acfe3f 100644--- a/homepage/index.php+++ b/homepage/index.php@@ -36,7 +36,6 @@ if(isset($_GET['stream'])){echo "<audio controls autoplay><source src=\"/stream\"></audio></div>- <h1><a href=\"/\">BirdNET-Pi</a><img src=\"images/version.svg\"></h1></div>";} else {header('WWW-Authenticate: Basic realm="My Realm"');@@ -51,7 +50,7 @@ if(isset($_GET['stream'])){<button type=\"submit\" name=\"stream\" value=\"play\">Live Audio</button></form></div>- <h1><a href=\"/\">BirdNET-Pi</a><img src=\"images/version.svg\"></h1>+ <h1><a href=\"/\">BirdNET-Pi</a></h1></div>";}if(isset($_GET['filename'])) {diff --git a/homepage/style.css b/homepage/style.cssindex 764d0e8f..618fb928 100644--- a/homepage/style.css+++ b/homepage/style.css@@ -422,9 +422,6 @@ button:hover {width: 60px;height: 60px;}- .version {- display: none;- }.topnav.responsive {position: relative;}.topnav.responsive button {display: block;@@ -494,7 +491,6 @@ button:hover {.left-column {display: none;}- .version {display:none;}.left {display:none;}@@ -516,4 +512,4 @@ button:hover {background:#dbffeb;padding:5px;border: 2px solid black;-}\ No newline at end of file+}diff --git a/homepage/views.php b/homepage/views.phpindex 4408b025..55f2c75b 100644--- a/homepage/views.php+++ b/homepage/views.php@@ -1,4 +1,9 @@<link rel="stylesheet" href="style.css">+<style>+body::-webkit-scrollbar {+ display:none+}+</style><meta name="viewport" content="width=device-width, initial-scale=1"><div class="topnav" id="myTopnav"><form action="" method="GET" id="views">@@ -51,7 +56,7 @@ if(isset($_GET['view'])){if($_GET['view'] == "System Controls"){include('scripts/system_controls.php');}if($_GET['view'] == "Services"){include('scripts/service_controls.php');}if($_GET['view'] == "Spectrogram"){include('spectrogram.php');}- if($_GET['view'] == "View Log"){echo "<iframe src=\"/log\"></iframe>";}+ if($_GET['view'] == "View Log"){echo "<body style=\"scroll:no;overflow-x:hidden;\"><iframe style=\"width:calc( 100% + 1em);\" src=\"/log\"></iframe></body>";}if($_GET['view'] == "Overview"){include('overview.php');}if($_GET['view'] == "Today's Detections"){include('todays_detections.php');}if($_GET['view'] == "Species Stats"){echo "<br><br>";include('stats.php');}