Request-LoRA / index.html
prithivMLmods's picture
Update index.html
59896d9 verified
<!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>