summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/poems.js23
-rw-r--r--static/script.js4
-rw-r--r--static/styles.css2
3 files changed, 27 insertions, 2 deletions
diff --git a/static/poems.js b/static/poems.js
index 8c573a2..3b4c780 100644
--- a/static/poems.js
+++ b/static/poems.js
@@ -77,6 +77,29 @@ Melodious birds sing madrigals.`,
"link": "https://en.wikipedia.org/wiki/The_Passionate_Shepherd_to_His_Love",
},
{
+ "line": "What lips my lips have kissed and where and why".split(' '),
+ "scansion": ['x', '/', 'x', '/', 'x', '/', 'x', '/', 'x', '/'],
+ "title": "Sonnet XLIII",
+ "collection": "",
+ "author": "Edna St. Vincent Millay",
+ "meter": "iambic pentameter",
+ "ctx": `What lips my lips have kissed, and where, and why,
+I have forgotten, and what arms have lain
+Under my head till morning; but the rain
+Is full of ghosts tonight, that tap and sigh
+Upon the glass and listen for reply,
+And in my heart there stirs a quiet pain
+For unremembered lads that not again
+Will turn to me at midnight with a cry.
+Thus in winter stands the lonely tree,
+Nor knows what birds have vanished one by one,
+Yet knows its boughs more silent than before:
+I cannot say what loves have come and gone,
+I only know that summer sang in me
+A little while, that in me sings no more.`,
+ "link": "https://www.poetryfoundation.org/poems/46557/what-lips-my-lips-have-kissed-and-where-and-why",
+ },
+ {
"line": "To dew her orbs upon the green".split(' '),
"scansion": ['x', '/', 'x', '/', 'x/', 'x', '/'],
"title": "Puck, Act II, Scene I",
diff --git a/static/script.js b/static/script.js
index c968ca3..41d9278 100644
--- a/static/script.js
+++ b/static/script.js
@@ -43,7 +43,9 @@ function renderLine(line, guess, guessIdx, scores) {
var els = []
var offset = 0;
if (guessIdx || guessIdx === 0) {
- els.push(`<div class="word"><div class="box idxbox" data-guess="${guessIdx}">📋 ${guessIdx+1}</div></div>`)
+ els.push(`<div class="word"><div class="box idxbox numbering" data-guess="${guessIdx}">📋 ${guessIdx+1}</div></div>`)
+ } else {
+ els.push(`<div class="word"><div class="box numbering">#${getChallengeIdx() + 1}</div></div>`)
}
for (var wordIdx in line) {
var word = line[wordIdx]
diff --git a/static/styles.css b/static/styles.css
index b4064bf..0f47b18 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -122,7 +122,7 @@
margin-bottom: .3em;
}
-.idxbox {
+.numbering {
background-color: transparent;
width: 60px;
cursor: pointer;