-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (149 loc) · 8.78 KB
/
index.html
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
---
title: Markomposition
homeActive: active
---
{% include header.html %}
<!-- Load the main application script. -->
<script data-main="/markomposition/build/markomposition.min" src="/markomposition/public/vendor/require.js"></script>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<form>
<div class="form-group">
<label for="textInput">Base Content for Poem:</label>
<img id="feedbackText" src="/markomposition/public/resources/images/execution-feedback-black.gif" />
<textarea id="textInput" class="form-control" rows="10"></textarea>
</div>
<b>Load text from:</b>
<div>
<button id="dickinson" type="button" class="btn btn-success">Emily Dickinson</button>
<button id="dante" type="button" class="btn btn-success">Dante's <i>Divine Comedy</i></button>
<button id="grimm" type="button" class="btn btn-success">Grimm's <i>Fairy Tales</i></button>
<button id="petrarch" type="button" class="btn btn-success">Petrarch's Sonnets</button>
<button id="declaration" type="button" class="btn btn-success">Declaration of Independence</button>
<button id="shakespeare" type="button" class="btn btn-success">Shakespeare's <i>Hamlet</i></button>
</div>
</form>
<div role="tabpanel" class="panel panel-default">
<!-- Nav tabs -->
<ul id="formTab" class="nav nav-tabs panel-heading" role="tablist">
<li id="freeVerseTab" role="presentation" class="active"><a href="#freeVerse" aria-controls="freeVerse" role="tab" data-toggle="tab">Free Verse</a></li>
<li id="haikuTab" role="presentation"><a href="#haiku" aria-controls="haiku" role="tab" data-toggle="tab">Haiku</a></li>
<li id="tankaTab" role="presentation"><a href="#tanka" aria-controls="tanka" role="tab" data-toggle="tab">Tanka</a></li>
<li id="sonnetTab" role="presentation"><a href="#sonnet" aria-controls="sonnet" role="tab" data-toggle="tab">Sonnet</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane panel-body active" id="freeVerse">
<h4 class="h4">
<b>Free Verse:</b> A poetic form with no set meter or rhyme scheme.
<a href="http://www.poets.org/poetsorg/text/poets-glossary-free-verse" target="_blank">
Learn more!</a>
</h4>
<form>
<div class="form-group">
<label for="enjambmentInput" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Enjambment Level:</label>
<label class="radio-inline">
<input type="radio" name="enjambmentInput" value="least"> least
</label>
<label class="radio-inline">
<input type="radio" name="enjambmentInput" value="medium" checked> medium
</label>
<label class="radio-inline">
<input type="radio" name="enjambmentInput" value="most"> most
</label>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label for="numWordsInput">Maximum Words:</label>
<input type="number" id="numWordsInput" class="form-control" value="100"></input>
</div>
</form>
</div> <!-- /freeVerse -->
<div role="tabpanel" class="tab-pane" id="haiku">
<h4 class="h4">
<b>Haiku:</b> A form of Japanese poetry consisting of three lines, with the syllable count 5-7-5.
<a href="http://www.poets.org/poetsorg/text/poetic-form-haiku" target="_blank">
Learn more!</a>
</h4>
<form class="form-inline">
<div class="form-group">
<label for="numHaikuInput">Maximum Haikus:</label>
<input type="number" id="numHaikuInput" class="form-control" value="3"></input>
</div>
</form>
</div> <!-- /haiku -->
<div role="tabpanel" class="tab-pane" id="tanka">
<h4 class="h4">
<b>Tanka:</b> A form of Japanese poetry consisting of five lines, with the syllable count 5-7-5-7-7.
<a href="http://www.poets.org/poetsorg/text/poetic-form-tanka" target="_blank">
Learn more!</a>
</h4>
<form class="form-inline">
<div class="form-group">
<label for="numTankaInput">Maximum Tankas:</label>
<input type="number" id="numTankaInput" class="form-control" value="3"></input>
</div>
</form>
</div> <!-- /haiku -->
<div role="tabpanel" class="tab-pane" id="sonnet">
<h4 class="h4">
<b>Sonnet:</b> A classical Italian form consisting of fourteen lines, usually of 10 syllables each.
<a href="http://www.poets.org/poetsorg/text/poetic-form-sonnet" target="_blank">
Learn more!</a>
</h4>
<!-- <p>
The two major forms of sonnets are <b>Petrarchan</b> and <b>Shakespearean</b>, named after their
most well-known practiotioners.
</p>
<p>
Petrarchan sonnets consist of an octave (8-line stanza) followed by a sestet (6-line stanza).
They generally follow the rhyme scheme ABBAABBA CDECDE.
</p>
<p>
Shakesperean sonnets consist of three quatrains (4-line stanzas) followed by a couplet (2-line stanza).
They generally follow the rhyme scheme ABAB CDCD EFEF GG.
</p>
<p>
Sonnets may also be written in <b>blank verse</b>, which is unrhymed
<a href="http://www.shmoop.com/literature-glossary/iambic-pentameter.html" target="_blank">iambic pentameter</a>.
While Markomposition can count syllables, it cannot parse text for patterns of stress in order
to create true iambic pentameter. However, if you use source material written in iambic
pentameter there is a chance your generated poems will also feature this famous meter!
</p>
-->
<form>
<div class="form-group">
<label for="sonnetTypeInput">Type:</label>
<label class="radio-inline">
<input type="radio" name="sonnetTypeInput" value="blankVerse" checked> blank verse
</label>
</div>
</form>
</div> <!-- /sonnet -->
</div>
</div>
<form>
<div class="form-group">
<label for="chainInput">Fusion Level:</label>
<label class="radio-inline">
<input type="radio" name="chainInput" value="3"> least
</label>
<label class="radio-inline">
<input type="radio" name="chainInput" value="2" checked> medium
</label>
<label class="radio-inline">
<input type="radio" name="chainInput" value="1"> most
</label>
</div>
</form>
<button id="submitBtn" class="btn btn-primary">Generate Poetry! <img id="feedbackPoem" src="/markomposition/public/resources/images/execution-feedback-blue.gif" />
</button>
</div>
<!-- /.col -->
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div id="poem"></div>
</div>
</div>
<!-- /.row -->
{% include footer.html %}