From 0be081d7e8e5b586b71528bac3c935a0dcd2518c Mon Sep 17 00:00:00 2001 From: Jacob Haddon Date: Sun, 10 Mar 2024 21:42:17 -0400 Subject: [PATCH] added 'copy with meta' option to add in info to the copied words todo: format all the date strings --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 3994533..47a60b8 100644 --- a/index.html +++ b/index.html @@ -120,6 +120,14 @@ $(document).ready(function(){ $("#copy_text").click(function(){ navigator.clipboard.writeText($("#poem_list").text()); }); // copy text + + $("#copy_text_meta").click(function(){ + const today = Date(Date.now()); + todayFormatted = today.toString(); + var poem_meta = "#dailyBlackoutPoetryChallenge\n\n" + $("#poem_list").text() + "\n\n" + book.title + " - " + todayFormatted; + navigator.clipboard.writeText(poem_meta); + }); // copy text + // change the color of a clicked word; add/remove clicked word to list $(document).on('click', "#spina.unlock p span", function(e){ @@ -187,6 +195,7 @@ $(document).ready(function(){

Copy Your Words

Copy the words you found here for alt-text, editing and archive! (Remember we don’t keep anything, so once you close this page, this poem is gone!)

+