summaryrefslogtreecommitdiff
path: root/index.html
blob: c33d599402eedc98a1f52e6168b88c0b31c66538 (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
<!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>
                <span class="sep"> · </span>
                <a href="/prosodyle/level-select">level select</a>
            </div>
        </div>
		<p>
            The dithyrambic sorcerer Roseacrucis has encrypted the
            Library&rsquo;s treasured poetry collections.
			Your task is to decode one line of poetry each day,
            though you may <a href="/prosodyle/level-select">attempt previous challenges as well</a>.
		</p>
		<br>
		<details>
			<summary>
				How to play
			</summary>
			Given the ransom price of one new line of poetry 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 ⬜.
			Accents and punctuation are ignored.
        <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>
		<p>
			Each guess must be a reasonable and sensible line of poetry, but
			creativity and poetic license are encouraged.
		</p>
		</details>
        <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>
				<button class="reset-level">Reset level</button>
			</div>
			<div id="win" style="display: none;">
				<p>
					<div id="win-idx-box"></div>
					Victory! Today&rsquo;s secret line was in
					<strong id="meter"></strong>:
				</p>
				<pre id="ctx" class="poetry"></pre>
				<div>
					<textarea rows="4" id="share"></textarea>
				</div>
				<button id="copy">Copy</button>
				<button class="reset-level">Reset level</button>
			</div>
			<p id="guesses"></p>
		</form>
    </div>
    <script src="/prosodyle/static/poems.js"></script>
    <script src="/prosodyle/static/script.js"></script>
  </body>
</html>