fix the things
This commit is contained in:
+3
-1
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user