add confirm

This commit is contained in:
Lee 2023-04-15 18:27:51 +01:00
parent d3e6fc0026
commit 068cf48e65

@ -8,6 +8,7 @@
<title>WIP Uploader</title>
<script src="https://cdn.fascinated.cc/assets/tailwindcss/3.2.4.js"></script>
<script src="https://cdn.fascinated.cc/assets/sweetalert2.all.min.js"></script>
<meta property="og:type" content="website" />
<meta property="og:title" content="WIP Maps" />
@ -35,7 +36,16 @@
<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"] . '\')">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=() => {
navigator.clipboard.writeText(\'!wip ' . $_GET["map"] . '\');
Swal.fire({
position: "top-end",
icon: "success",
title: "Copied to clipboard",
showConfirmButton: false,
timer: 1000
})
}>Copy</button>
</div>
';
return;