summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-02-28 22:20:52 -0500
committercyfraeviolae <cyfraeviolae>2022-02-28 22:20:52 -0500
commitb7a5d24b671cb62d066cfb04d6f9d9bfa4714e90 (patch)
treeda2bd525f72b220769c4d3058477710231b2d5c9
parent6d3bb3db5d0e4f115d3e79b4ece23627affad8a5 (diff)
one more poem
-rw-r--r--static/poems.js13
-rw-r--r--static/script.js3
2 files changed, 15 insertions, 1 deletions
diff --git a/static/poems.js b/static/poems.js
index e7f9539..af92bf2 100644
--- a/static/poems.js
+++ b/static/poems.js
@@ -63,4 +63,17 @@ Covered her with snow, like ermine;
Thus they buried Minnehaha.`,
"link": "https://www.gutenberg.org/files/30795/30795-h/30795-h.htm#XX",
},
+ {
+ "line": "Melodious birds sing madrigals".split(' '),
+ "scansion": ['x/x', '/', 'x', '/x/'],
+ "title": "The Passionate Shepherd to His Love",
+ "collection": null,
+ "author": "Christopher Marlowe",
+ "meter": "iambic tetrameter",
+ "ctx": `And we will sit upon the rocks,
+Seeing the shepherds feed their flocks
+By shallow rivers to whose falls
+Melodious birds sing madrigals.`,
+ "link": "https://en.wikipedia.org/wiki/The_Passionate_Shepherd_to_His_Love",
+ },
]
diff --git a/static/script.js b/static/script.js
index 325b8e5..4648567 100644
--- a/static/script.js
+++ b/static/script.js
@@ -194,7 +194,8 @@ function winGame(challenge) {
winEl.style = 'display: block;'
document.getElementById('btns').style = 'display: none;'
document.getElementById('meter').innerText = challenge.meter
- document.getElementById('ctx').innerHTML = challenge.ctx.replaceAll(/^(.*)/gm, ' $1') + `\n\t<span class="byline">&mdash;<a href="${challenge.link}">${challenge.title}</a>\n\t\t${challenge.collection}, ${challenge.author}</span>`
+ var collection = challenge.collection ? `${challenge.collection}, ` : ""
+ document.getElementById('ctx').innerHTML = challenge.ctx.replaceAll(/^(.*)/gm, ' $1') + `\n\t<span class="byline">&mdash;<a href="${challenge.link}">${challenge.title}</a>\n\t\t${collection}${challenge.author}</span>`
var firstguess = Object.values(guesses[0]).join(' ')
document.getElementById('share').value = `I solved Prosodyle #${getChallengeIdx()+1} at cyfraeviolae.org/prosodyle. My first guess was: "${firstguess}."`
}