This commit is contained in:
Đăng Nguyễn
2025-12-31 14:03:47 +07:00
parent 49c0c1ab39
commit 5c1851e92f
9 changed files with 73 additions and 309 deletions

View File

@@ -1 +1,10 @@
window.copyToClipboardFallback = function (text) {
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.style.position = 'fixed';
textarea.style.opacity = '0';
document.body.appendChild(textarea);
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
}