fix display
This commit is contained in:
parent
6a23456110
commit
2254e2bec5
@ -51,11 +51,17 @@
|
|||||||
<?php
|
<?php
|
||||||
// if the map parameter is set, display the map
|
// if the map parameter is set, display the map
|
||||||
if (isset($_GET["map"])) {
|
if (isset($_GET["map"])) {
|
||||||
|
$command = "";
|
||||||
|
if (str_starts_with($_GET["map"], "https")) {
|
||||||
|
$command = "!wip " . $_GET["map"];
|
||||||
|
} else {
|
||||||
|
$command = $_GET["map"];
|
||||||
|
}
|
||||||
echo
|
echo
|
||||||
'
|
'
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<label for="map" class="block text-white text-sm font-bold mb-2">Successfully uploaded Map</label>
|
<label for="map" class="block text-white text-sm font-bold mb-2">Successfully uploaded Map</label>
|
||||||
<span class="bg-gray-700 text-white rounded w-full py-2 px-3 focus:outline-none focus:shadow-outline">!wip ' . $_GET["map"] . '</span>
|
<span class="bg-gray-700 text-white rounded w-full py-2 px-3 focus:outline-none focus:shadow-outline">!wip ' . $command . '</span>
|
||||||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" onclick="copy()">Copy</button>
|
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" onclick="copy()">Copy</button>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
|
Reference in New Issue
Block a user