fix
This commit is contained in:
parent
068cf48e65
commit
59a6c28762
24
index.php
24
index.php
@ -36,16 +36,7 @@
|
|||||||
<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 ' . $_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=() => {
|
<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>
|
||||||
navigator.clipboard.writeText(\'!wip ' . $_GET["map"] . '\');
|
|
||||||
Swal.fire({
|
|
||||||
position: "top-end",
|
|
||||||
icon: "success",
|
|
||||||
title: "Copied to clipboard",
|
|
||||||
showConfirmButton: false,
|
|
||||||
timer: 1000
|
|
||||||
})
|
|
||||||
}>Copy</button>
|
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
return;
|
return;
|
||||||
@ -67,6 +58,19 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user