This commit is contained in:
Lee 2023-04-15 18:28:58 +01:00
parent 068cf48e65
commit 59a6c28762

@ -36,16 +36,7 @@
<div class="mb-5">
<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>
<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=() => {
navigator.clipboard.writeText(\'!wip ' . $_GET["map"] . '\');
Swal.fire({
position: "top-end",
icon: "success",
title: "Copied to clipboard",
showConfirmButton: false,
timer: 1000
})
}>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>
';
return;
@ -67,6 +58,19 @@
?>
</div>
</div>
<script>
function copy() {
navigator.clipboard.writeText("!wip <?php echo $_GET["map"]; ?>");
Swal.fire({
position: "top-end",
icon: "success",
title: "Copied to clipboard",
showConfirmButton: false,
timer: 1000
});
}
</script>
</body>
</html>