This commit is contained in:
DavidOnTop 2024-05-04 22:21:09 +02:00
parent 4ab9396e29
commit e64b78239c
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
3 changed files with 376 additions and 170 deletions

View file

@ -28,8 +28,9 @@ import Layout from "../layouts/Layout.astro";
<script>
document.getElementById("discord-btn").onclick = function () {
document.getElementById("discord-modal").showModal();
let inp = document.getElementById("discord-inp")!;
const modal: any = document.getElementById("discord-modal")
modal.showModal();
let inp: any = document.getElementById("discord-inp")!;
inp.focus();
inp.select();
document.execCommand("copy");