A live bird collage card for your Home Assistant dashboard.
fix the things
ehpersonal3888ccda11f387
diff --git a/homepage/views.php b/homepage/views.phpindex 1b2cb429..0578f5e4 100644--- a/homepage/views.php+++ b/homepage/views.php@@ -66,6 +66,7 @@ elseif ($config["LONGITUDE"] == "0.000") {echo "<center style='color:red'><b>WARNING: Your longitude is not set properly. Please do so now in Tools -> Settings.</center></b>";}?>+<?php if(!isset($_GET['hidehtml'])){?><link rel="stylesheet" href="style.css?v=<?php echo date ('n.d.y', filemtime('style.css')); ?>"><style>body::-webkit-scrollbar {@@ -138,7 +139,7 @@ function copyOutput(elem) {document.execCommand("copy");}</script>-+<?php } //hidehtml ?><div class="views"><?phpif(isset($_GET['view'])){@@ -451,3 +452,4 @@ window.onbeforeunload = function(event) {</script></div></body>+diff --git a/scripts/config.php b/scripts/config.phpindex 4f92d71d..942f309e 100644--- a/scripts/config.php+++ b/scripts/config.php@@ -113,7 +113,7 @@ if(isset($_GET["latitude"])){echo "<script>setTimeout(function() {const xhttp = new XMLHttpRequest();- xhttp.open(\"GET\", \"./views.php?view=Settings&restart_php=true\", true);+ xhttp.open(\"GET\", \"./views.php?view=Settings&restart_php=true&hidehtml=true\", true);xhttp.send();}, 1000);</script>";}@@ -350,7 +350,7 @@ function sendTestNotification(e) {e.classList.remove("disabled");}}- xmlHttp.open("GET", "scripts/config.php?sendtest=true&apprise_notification_title="+apprise_notification_title+"&apprise_notification_body="+apprise_notification_body+"&apprise_config="+apprise_config, true); // true for asynchronous+ xmlHttp.open("GET", "views.php?view=Settings&hidehtml=true&sendtest=true&apprise_notification_title="+apprise_notification_title+"&apprise_notification_body="+apprise_notification_body+"&apprise_config="+apprise_config, true); // true for asynchronousxmlHttp.send(null);}</script>@@ -468,7 +468,7 @@ function runProcess() {output.innerHTML = xhr.responseText;}};- xhr.open('GET', `views.php?view=Settings&threshold=${threshold}`);+ xhr.open('GET', `views.php?view=Settings&threshold=${threshold}&hidehtml=true`);xhr.send();}</script>