A live bird collage card for your Home Assistant dashboard.
Revert "fix the things"
ehpersonal38f050a60cc159
diff --git a/homepage/views.php b/homepage/views.phpindex 735fbad6..6784ab1a 100644--- a/homepage/views.php+++ b/homepage/views.php@@ -67,7 +67,6 @@ 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 {@@ -140,7 +139,7 @@ function copyOutput(elem) {document.execCommand("copy");}</script>-<?php } //hidehtml ?>+<div class="views"><?phpif(isset($_GET['view'])){@@ -453,4 +452,3 @@ window.onbeforeunload = function(event) {</script></div></body>-diff --git a/scripts/config.php b/scripts/config.phpindex d16f6f4d..77a0038b 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&hidehtml=true\", true);+ xhttp.open(\"GET\", \"./views.php?view=Settings&restart_php=true\", true);xhttp.send();}, 1000);</script>";}@@ -348,7 +348,7 @@ function sendTestNotification(e) {e.classList.remove("disabled");}}- 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 asynchronous+ 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 asynchronousxmlHttp.send(null);}</script>@@ -466,7 +466,7 @@ function runProcess() {output.innerHTML = xhr.responseText;}};- xhr.open('GET', `views.php?view=Settings&threshold=${threshold}&hidehtml=true`);+ xhr.open('GET', `views.php?view=Settings&threshold=${threshold}`);xhr.send();}</script>