Spaces:
Running
Running
File size: 1,459 Bytes
0166812 4c419c8 0166812 4c419c8 0166812 4c419c8 0166812 4c419c8 0166812 4c419c8 0166812 4c419c8 5a3716c 59896d9 4c419c8 5a3716c 4c419c8 0166812 4c419c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Copy Clipboard</title>
<style>
html, body {
height: 100%;
margin: 0;
font-family: Arial, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.container {
text-align: center;
}
button {
padding: 12px 24px;
font-size: 16px;
cursor: pointer;
}
#linkText {
margin-top: 20px;
font-size: 14px;
}
#linkText a {
color: #333;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<button id="copyBtn">Copy Clipboard</button>
<p id="linkText">
<a href="https://huggingface.co/spaces/strangerzonehf/Request-LoRA/discussions/1" target="_blank">
https://huggingface.co/spaces/strangerzonehf/Request-LoRA/discussions/1
</a>
</p>
</div>
<script>
const copyBtn = document.getElementById('copyBtn');
const linkURL = "https://huggingface.co/spaces/strangerzonehf/Request-LoRA/discussions/1";
copyBtn.addEventListener('click', function() {
navigator.clipboard.writeText(linkURL).then(() => {
copyBtn.innerText = "Copied!";
setTimeout(() => copyBtn.innerText = "Copy Clipboard", 2000);
}).catch(err => {
console.error('Error copying text: ', err);
});
});
</script>
</body>
</html>
|