summaryrefslogtreecommitdiff
path: root/index.html
blob: 9505f7fd6a3b4677e24f6488fe8ca7b050962b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
  <head>
    <title>Prosodyle</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/static/styles.css">
    <link rel="stylesheet" type="text/css" href="/prosodyle/static/styles.css">
    <link rel="shortcut icon" type="image/x-icon" href="/prosodyle/static/favicon.ico">
  </head>
  <body>
	<div class="container">
        <div>
            <div class="home">
                <a href="/prosodyle" class="home-title">Prosodyle</a>
                <span> at </span><a href="/">cyfraeviolae.org</a>
            </div>
            <div class="crumbs">
                <a href="/git/prosodyle">source code</a>
            </div>
        </div>
        <p>
            The dithyrambic sorcerer Roseacrucis has encrypted the
            Library&rsquo;s treasured poetry collections. As our newest
            acolyte, your task is to decode one secret line of poetry each day.
        </p>
        <p>
			Given the ransom price of one new line in the same meter as today&rsquo;s secret
			line, for each word, Roseacrucis will reveal which letters are in the right place 🟩, in the word but in the wrong
			place 🟨, or not in the word at all ⬜.
        </p>
        <p>
            Each word is annotated with the number of required syllables and their stress marks. For example,
            <span class="scansion">&times;&sol;</span> indicates that the word has two syllables, the first unstressed and the second
            stressed (such as in <em>por-TRAY</em>).
        </p>
        <noscript>Sorry, JavaScript is required to play Prosodyle.</noscript>
        <br>
		<form id="game" action="javascript:void(0);" method="none">
			<div id="entry"></div>
			<div id="btns">
				<div style="text-align: center;">
					<div class="keyboard">
						<div class="kbrow">
							<div class="key" data-key="Q">Q</div>
							<div class="key" data-key="W">W</div>
							<div class="key" data-key="E">E</div>
							<div class="key" data-key="R">R</div>
							<div class="key" data-key="T">T</div>
							<div class="key" data-key="Y">Y</div>
							<div class="key" data-key="U">U</div>
							<div class="key" data-key="I">I</div>
							<div class="key" data-key="O">O</div>
							<div class="key" data-key="P">P</div>
						</div>
						<div class="kbrow">
							<div class="key" data-key="A">A</div>
							<div class="key" data-key="S">S</div>
							<div class="key" data-key="D">D</div>
							<div class="key" data-key="F">F</div>
							<div class="key" data-key="G">G</div>
							<div class="key" data-key="H">H</div>
							<div class="key" data-key="J">J</div>
							<div class="key" data-key="K">K</div>
							<div class="key" data-key="L">L</div>
							<div class="key" data-key="Backspace">⇤</div>
						</div>
						<div class="kbrow">
							<div class="key" data-key="Z">Z</div>
							<div class="key" data-key="X">X</div>
							<div class="key" data-key="C">C</div>
							<div class="key" data-key="V">V</div>
							<div class="key" data-key="B">B</div>
							<div class="key" data-key="N">N</div>
							<div class="key" data-key="M">M</div>
							<div class="key" data-key="ArrowLeft">&larr;</div>
							<div class="key" data-key="ArrowRight">&rarr;</div>
						</div>
					</div>
				</div>
				<button id="check" type="submit">Check guess</button>
				<button id="clear">Clear all</button>
				<button id="fill-green">Clear word and fill greens</button>
			</div>
			<div id="win" style="display: none;">
				<p>
					Huzzah! Today&rsquo;s secret line was in
					<strong id="meter"></strong>:
				</p>
				<pre id="ctx" class="poetry"></pre>
				<p>
					But our troubles are not over. Most of the Library&rsquo;s poetry
					remains encrypted, and we need your help to decode a new line
					tomorrow.
				</p>
				<p>
					In the meantime, you may share your results with your fellow acolytes,
					adding punctuation as desired.
				</p>
                <br>
				<div>
					<textarea rows="4" id="share"></textarea>
				</div>
				<button id="copy">Copy</button>
			</div>
			<p id="guesses"></p>
		</form>
    </div>
    <script src="/prosodyle/static/poems.js"></script>
    <script src="/prosodyle/static/script.js"></script>
  </body>
</html>