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 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!)
+