error modals are so on

This commit is contained in:
2026-01-26 12:39:37 +11:00
parent a3dafa592b
commit a5b92a247b
19 changed files with 195 additions and 605 deletions

View File

@@ -0,0 +1,17 @@
function copyToClipboard(elementId, buttonId) {
const element = document.getElementById(elementId);
const button = document.getElementById(buttonId);
navigator.clipboard.writeText(element.innerText)
.then(() => {
const originalText = button.innerText;
button.innerText = 'Copied!';
setTimeout(() => {
button.innerText = originalText;
}, 2000);
})
.catch(err => {
console.error('Failed to copy:', err);
button.innerText = 'Failed';
});
}