From 3516f678071b506cf9330a6817612b4663b309af Mon Sep 17 00:00:00 2001 From: Brine Date: Sun, 4 Aug 2024 14:31:49 -0600 Subject: [PATCH] copy pasta --- assets/js/site.js | 6 ++++++ src/views/rando.js | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/js/site.js b/assets/js/site.js index 83acbeb..878448c 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -31,3 +31,9 @@ function toggleHamburger () { links.style.display = 'block' } } + + +function copyTextToClipboard() { + let text = [...document.querySelectorAll('.copyToClipboard')].map(elm => `${elm.textContent}\n`).join('') + navigator.clipboard.writeText(text) +} \ No newline at end of file diff --git a/src/views/rando.js b/src/views/rando.js index f2ee8ca..2f5d39f 100644 --- a/src/views/rando.js +++ b/src/views/rando.js @@ -37,10 +37,10 @@ const rando = {
${belief}
-
Sparks
-
${await r.sparks()}
-
${threat}
-
${complication}
+
Sparks
+
${await r.sparks()}
+
${threat}
+
${complication}
Loot
${(r.d6() * r.d6() + r.d6())}