Flatlogic Bot 58e3bb7010 1.2
2025-11-09 03:37:51 +00:00

17 lines
669 B
JavaScript

// Custom JavaScript will go here
document.addEventListener('DOMContentLoaded', function() {
const copyButton = document.getElementById('copy-button');
if (copyButton) {
copyButton.addEventListener('click', function() {
const portalLinkInput = document.getElementById('portal-link');
portalLinkInput.select();
document.execCommand('copy');
// Optional: Provide feedback to the user
copyButton.innerHTML = '<i class="bi bi-check-lg"></i>';
setTimeout(function() {
copyButton.innerHTML = '<i class="bi bi-clipboard"></i>';
}, 2000);
});
}
});