From 9fc95034c475ad81f9842907265f06fe2e4dd507 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Tue, 18 Jun 2024 13:30:46 -0600 Subject: [PATCH] copy button to get result --- src/routes/+page.svelte | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4b7b49e..c644861 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -26,6 +26,10 @@ ${groups.leaveTo !== groups.enterFrom ? `leaveTo=${groups.leaveTo}` : ''} > `) : '' + + async function copy() { + await navigator.clipboard.writeText(result) + }
@@ -52,5 +56,13 @@
{result}
+ + + {/if} -
\ No newline at end of file +