Initial commit with Sveltekit + format files

This commit is contained in:
pheralb
2025-08-21 10:26:07 +01:00
parent ca4f397e0a
commit 459457a7e1
97 changed files with 3892 additions and 9893 deletions
+3 -3
View File
@@ -7,12 +7,12 @@ export function copyToClipboard(value: string) {
// @ts-ignore
window.copy(value);
} else {
const area = document.createElement('textarea');
const area = document.createElement("textarea");
document.body.appendChild(area);
area.value = value;
// area.focus();
area.select();
const result = document.execCommand('copy');
const result = document.execCommand("copy");
document.body.removeChild(area);
if (!result) {
throw new Error();
@@ -23,4 +23,4 @@ export function copyToClipboard(value: string) {
return false;
}
return true;
}
}