-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
222 lines (188 loc) · 7.88 KB
/
Copy pathindex.html
File metadata and controls
222 lines (188 loc) · 7.88 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Strictly</title>
<meta name="description" content="Make poetic forms online">
<meta property="og:image" content="[[Insert Absolute Path]]">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,100..900,100,1;1,9..144,100..900,100,1&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body hx-boost="true">
<header>
<top-part>
<inner-column>
<ul class="title-bar">
<li class="title"><a href="/">strictly</a></li>
<li>
<label class="option-slider">
<span id="explanations-label" class="mono">Explanations?</span>
<div class="switch-container">
<input type="checkbox" id="show-explanations" aria-describedby="explanations-label" checked />
<div class="slider round"></div>
</div>
</label>
</li>
<!-- <li class="login"><a href="login.html">log in</a></div> -->
</ul>
</inner-column>
</top-part>
<!-- <bottom-part>
<inner-column>
<nav>
<ul class="site-nav">
<li>
<a href="homepage.html">home</a>
</li>
<li>
<a href="about.html">about</a>
</li>
<li>
<a href="create.html">create</a>
</li>
</ul>
</nav>
</inner-column>
</bottom-part> -->
</header>
<main>
<section class="form-panel">
<form id="create-form" action="">
<inner-column>
<h1 class="loud-voice">Define</h1>
<field-group class="choose-a-form">
<label for="form-select" class="loud-instruction">
Choose a Form
</label>
<select name="predefined-form" id="predefined-form">
<option value="" selected disabled hidden>Select</option>
<option value="sonnet">Shakespearean Sonnet</option>
<option value="limerick">Limerick</option>
<option value="haiku">Haiku</option>
<option value="blankVerse">Blank Verse (Iambic Pentameter)</option>
<option value="commonMeter">Common Meter</option>
</select>
</field-group>
<fieldset id="form-inputs">
<label id="create-your-own" class="loud-instruction">
<!-- <span class="triangle"></span> -->
<span class="text">Or, Create Your Own</span>
<!-- <input type="checkbox" checked> -->
</label>
<field-group>
<label for="rhyme-scheme">
<span class="label-name">Rhyme Scheme</span>
<input id="rhyme-scheme" name="rhyme-scheme" type="text" class="empty" placeholder="eg. ABAB">
</label>
<p class="explanation-text explanation">
Letters represent patterns of end-rhymes. The rhyme scheme is a repeating stanza unit, with the rhymes reset for each repetition. That is, "ABAB" will expand to "ABAB CDCD EFEF ...". Spaces are ignored.
</p>
</field-group>
<field-group>
<label for="rhyme-distance">
<span class="label-name">Max Rhyme Distance</span><input id="rhyme-distance" name="rhyme-distance" type="number" value="0" min="0" max="255">
</label>
<p class="explanation-text explanation">
Maximum distance between end-rhymes set in <strong>Rhyme Scheme</strong>. 0 = "perfect rhyme". Increasing distances loosen the scope of acceptable rhymes. E.g. at a value of 1, "orange" and "door hinge" rhyme; at 2, "bat" and "bit" rhyme. Right now, at values <4, this works well for tracking vowel distance between words with identical consonant sounds. It is less useful for comparing similar sounding words with consonant differences. I have plans to expand this feature, so that you will be able to pick up the rhyme between, for example, "prosperous" and "hostages", which right now is lost in noise. <a href="rhyme-distance">Learn more</a>.
</p>
</field-group>
<field-group>
<label for="meter">
<span class="label-name">Meter</span>
<input id="meter" name="meter" type="text" class="empty" placeholder="eg. x/x/x/x/" pattern="[x\/\(\) \t\r\n\f]*"
title="input.title = "Only 'x', '/', '(', ')' and whitespace are allowed.">
</label>
<p class="explanation-text explanation">
<strong>x</strong> represents an unstressed syllable, <strong>/</strong> a stressed syllable. Parentheses can be used to indicate optional sections. E.g. "x/(x/)" will match "x/" and "x/x/". Multiple parentheses may be used, but they may not be nested. Spaces are ignored.
</p>
</field-group>
<field-group>
<label for="syllables-per-line">
<span class="label-name">Syllables per Line</span>
<input id="syllables-per-line" name="syllables-per-line" type="number" class="empty">
</label>
<p class="explanation-text explanation">
Can accept ranges, e.g. "9-11" will match a sequence of nine, ten, or eleven syllables.
</p>
</field-group>
<field-group>
<label for="poem-line-length">
<span class="label-name">Poem Line Length</span>
<input id="poem-line-length" name="poem-line-length" type="number" class="empty">
</label>
<p class="explanation-text explanation">
Can accept ranges, e.g. "9-11" will match a poem of nine, ten, or eleven lines.
</p>
</field-group>
<field-group>
<label for="stanza-line-length">
<span class="label-name">Stanza Line Length</span>
<input id="stanza-line-length" name="stanza-line-length" type="number" class="empty">
</label>
<p class="explanation-text explanation">
Can accept ranges, e.g. "9-11" will match a stanza of nine, ten, or eleven lines. Stanzas are repeating units, separated by blank lines.
</p>
<p class="requirements"> </p>
</field-group>
<field-group>
<label class="checkbox-slider" class="differing-lines-label">
<span class="label-name"><span class="poem-or-stanza">Poem</span> Contains Differing Lines?</span>
<input type="checkbox" id="poem-differing-lines" class="differing-lines" name="poem-differing-lines" disabled>
<div class="toggle">
<div class="slider"></div>
<span id="no">NO</span>
<span id="yes">YES</span>
</div>
</label>
<p class="explanation-text explanation">
<strong>Yes</strong> means that <span class="poem-or-stanza">Poem</span> contains lines with different meter or syllable length restrictions. <strong>No</strong> means that <span class="poem-or-stanza">Poem</span> contain lines wiht the same meter or syllable length restrictions.
</p>
</field-group>
</fieldset>
</inner-column>
</form>
</section>
<section class="compose-panel">
<inner-column>
<h1 class="loud-voice">Compose</h1>
<p class="explanation-text explanation">At the end of each line, you'll see a series of indicators.</p>
<p class="explanation-text explanation">The single letters at the top are labels for Rhyme, Meter, and Syllable.</p>
<p class="explanation-text explanation">The symbols in each line below mean:</p>
<ul class="explanation copy">
<li class="legend-item explanation-text copy">
<div class="indicator meter-indicator good"></div>
<div>valid</div>
</li>
<li class="legend-item explanation-text copy">
<div class="indicator rhyme-indicator bad"></div>
<div>invalid</div>
</li>
<li class="legend-item explanation-text copy">
<div class="indicator meter-indicator"></div>
<div>did not process</div>
</li>
</ul>
<p class="explanation explanation-text">The most likely reason a line did not process is that an unrecognized word was used.</p>
<h2>Write below, press enter to validate a line.</h2>
<ul class="indicator-labels">
<li><span>R</span></li>
<li><span>M</span></li>
<li><span>S</span></li>
</ul>
<div id="compose">
<div class="input-group" id="line-0-group">
<input id="line-0" name="line-0" type="text" class="compose-input">
<label for="line-0" class="indicators"></label>
</div>
</div>
</inner-column>
</section>
</main>
<script src="static/rhyme-and-meter.js"></script>
<script src="static/form-logic.js"></script>
<script src="static/compose.js"></script>
</body>
</html>