This commit is contained in:
Sequoia Haynes 2024-12-03 11:08:15 -08:00
parent 321d90aaf1
commit 9dc305221d
2 changed files with 4 additions and 7 deletions

View File

@ -2,11 +2,8 @@ var copyButton = document.getElementById("copyButton")
var ipField = document.getElementById("ip")
async function copyToClipboard(){
//ik this function is deprecated, but the main clipboard api doesnt work for me
Document.execCommand("copy",false,ipField.value)
document.execCommand("copy",false,ipField.value)
//im too lazy to go make a proper hovertext thing, il do it later
alert("Copied!")
}
function silly(){
copyButton.addEventListener("click",copyToClipboard)
}
window.setTimeout(silly, 100);
copyButton.addEventListener("click",copyToClipboard)

View File

@ -32,8 +32,8 @@
color:#1dc460;
}
#footer{
color:grey;
bottom: 150%;
background-color:grey;
top: 150%;
display:flex;
position:absolute;
justify-content: center;