fix the things

This commit is contained in:
ehpersonal38
2023-05-25 15:54:54 -04:00
parent 049b62d6ae
commit 88ccda11f3
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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">
<?php
if(isset($_GET['view'])){
@@ -451,3 +452,4 @@ window.onbeforeunload = function(event) {
</script>
</div>
</body>
+3 -3
View File
@@ -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 asynchronous
xmlHttp.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>