Config update button
This commit is contained in:
@@ -82,6 +82,12 @@ button {
|
|||||||
transition:background-color 0.2s;
|
transition:background-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled{
|
||||||
|
cursor: not-allowed;
|
||||||
|
pointer-events: none;
|
||||||
|
opacity:0.5;
|
||||||
|
}
|
||||||
|
|
||||||
button:hover {
|
button:hover {
|
||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -117,7 +117,7 @@ if(isset($_GET["latitude"])){
|
|||||||
</head>
|
</head>
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
<h2>Basic Settings</h2>
|
<h2>Basic Settings</h2>
|
||||||
<form action="" method="GET">
|
<form id="basicform" action="" method="GET">
|
||||||
<?php
|
<?php
|
||||||
if (file_exists('./scripts/thisrun.txt')) {
|
if (file_exists('./scripts/thisrun.txt')) {
|
||||||
$config = parse_ini_file('./scripts/thisrun.txt');
|
$config = parse_ini_file('./scripts/thisrun.txt');
|
||||||
@@ -261,7 +261,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
|
|||||||
|
|
||||||
<input type="hidden" name="status" value="success">
|
<input type="hidden" name="status" value="success">
|
||||||
<input type="hidden" name="submit" value="settings">
|
<input type="hidden" name="submit" value="settings">
|
||||||
<button type="submit" name="view" value="Settings">
|
<button type="submit" id="basicformsubmit" onclick="if(document.getElementById('basicform').checkValidity()){this.innerHTML = 'Updating... please wait.';this.classList.add('disabled')}" name="view" value="Settings">
|
||||||
<?php
|
<?php
|
||||||
if(isset($_GET['status'])){
|
if(isset($_GET['status'])){
|
||||||
echo "Success!";
|
echo "Success!";
|
||||||
|
|||||||
Reference in New Issue
Block a user