-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.htm
207 lines (188 loc) · 10.7 KB
/
index.htm
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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>
MalePropp Tale Generator
</title>
<link href="propp.css" rel="stylesheet"></link>
</head>
<body>
<form name="myform" onsubmit="return false;" action="" >
<center>
<div>
<table col="3">
<tbody><tr>
<td colspan="3">
<h2>proppian fairy tale generator</h2>
<p>select your functions:</p>
</td>
</tr>
<tr>
<td>
<ul class='sphere' id='introduction'>
<li title="not a Propp function"><input name="func0" type="checkbox" />introduction</li>
<li title="1: Absentation: Someone goes missing"><input name="func1" type="checkbox" />absention</li>
<li title="2: Interdiction: hero is warned"><input name="func2" type="checkbox" />interdiction</li>
<li title="3: Violation of Interdiction"><input name="func3" type="checkbox" />violation</li>
<li title="4: Reconnaissance: Villain seeks something"><input name="func4" type="checkbox" />reconnaissance</li>
<li title="5: Delivery: The villain gains information"><input name="func5" type="checkbox" />delivery</li>
<li title="6: Trickery: Villain attempts to deceive victim."><input name="func6" type="checkbox" />trickery</li>
<li title="7: Complicity: Unwitting helping of the enemy"><input name="func7" type="checkbox" />complicity</li>
</ul>
<ul class='sphere' id='storybody' title="2nd Sphere: the Body of the Story">
<li title="8: Villainy: The need is identified (Villainy)"><input name="func8" type="checkbox" checked='checked' />villainy</li>
<li>
<select name='func8subfunc' id='func8subfunc'>
<option value='random'>Random</option>
</select>
</li>
<li title="8a: Lack: The need is identified (Lack)"><input name="func8a" type="checkbox" />lack</li>
<li title="9: Mediation: hero discovers the lack"><input name="func9" type="checkbox" />mediation</li>
<li title="10: Counteraction: hero chooses positive action"><input name="func10" type="checkbox" />beginning counteraction</li>
<li title="11: Departure: hero leave on mission"><input name="func11" type="checkbox" />departure</li>
</ul>
<ul class='sphere' id='donorsequence'>
<li title="12: Testing: hero is challenged to prove heroic qualities"><input name="func12" type="checkbox" />first function of the donor</li>
<li title="13: Reaction: hero responds to test"><input name="func13" type="checkbox" />hero's reaction</li>
<li title="14: Acquisition: hero gains magical item"><input name="func14" type="checkbox" />receipt of a magical agent</li>
<li title="15: Guidance: hero reaches destination"><input name="func15" type="checkbox" />guidance</li>
</ul>
</td>
<td>
<ul class='sphere' id='donorsequence'>
<li title="16: Struggle: hero and villain do battle"><input name="func16" type="checkbox" />struggle</li>
<li title="17: Branding: hero is branded"><input name="func17" type="checkbox" />branding</li>
<li title="18: Victory: Villain is defeated"><input name="func18" type="checkbox" />victory</li>
<li title="19: Resolution: Initial misfortune or lack is resolved"><input name="func19" type="checkbox" />liquidation</li>
</ul>
<ul class='sphere' id='herosreturn'>
<li title="20: Return: hero sets out for home"><input name="func20" type="checkbox" />return</li>
<li title="21: Pursuit: hero is chased"><input name="func21" type="checkbox" />pursuit</li>
<li title="22: Rescue: pursuit ends"><input name="func22" type="checkbox" />rescue</li>
<li title="23: Arrival: hero arrives unrecognized"><input name="func23" type="checkbox" />unrecognized arrival</li>
<li title="24: Claim: False hero makes unfounded claims"><input name="func24" type="checkbox" />unfounded claims</li>
<li title="25: Task: Difficult task proposed to the hero"><input name="func25" type="checkbox" />difficult task</li>
<li title="26: Solution: Task is resolved"><input name="func26" type="checkbox" />solution</li>
<li title="27: Recognition: hero is recognised"><input name="func27" type="checkbox" />recognition</li>
<li title="28: Exposure: False hero is exposed"><input name="func28" type="checkbox" />exposure</li>
<li title="29: Transfiguration: hero is given a new appearance"><input name="func29" type="checkbox" />transfiguration</li>
<li title="30: Punishment: Villain is punished"><input name="func30" type="checkbox" />punishment</li>
<li title="31: Wedding: hero marries and ascends the throne"><input name="func31" type="checkbox" />wedding</li>
</ul>
</td>
<td rowspan="3" align="right" valign="left">
<!-- leaving these in for future replacement -->
<!-- <a href="javascript:gui.popup2('instruction')">instructions</a><br /> -->
<!-- <a href="javascript:gui.popup2(how,win)">how</a><br /> -->
<p><select name='presets' id='presets'>
</select>
</p>
<br />
<ul>
<li>Theme:</li>
<li><input name='theme' type='radio' id='r1' value='test' checked='checked' /><label for='r1'>Vaguely Russian</label></li>
<li><input name='theme' type='radio' id='r2' value='office' /><label for='r2'>Office Setting</label></li>
<li><input name='theme' type='radio' id='r3' value='original' /><label for='r3'>Brown</label></li>
<!-- <input name='theme' type='radio' value=''>random</input> -->
</ul>
<br />
<ul>
<li>links:</li>
<li><a href="./function.generator.htm">function generator</a></li>
<li><a href="https://web.archive.org/web/20061112014356/http://www.brown.edu/Courses/FR0133/Fairytale_Generator/gen.html">original</a></li>
<li><a href="https://github.com/MichaelPaulukonis/malepropp">repo</a></li>
<li><a href="https://github.com/MichaelPaulukonis/NaNoGenMo2014/tree/master/propp.gen">original repo</a></li>
<li><a href="https://github.com/dariusk/NaNoGenMo-2014/issues/6">disscussion</a></li>
</ul>
</td>
</tr>
<tr>
<td>
<ul id='settings'>
<li>
Hero:
<input name='herogender' id='herogenderfemale' type='radio' value='female' checked='checked' />
<label for='herogenderfemale'>female</label>
<input name='herogender' id='herogendermale' type='radio' value='male' />
<label for='herogendermale'>male</label>
<input name='herogender' id='herogenderneuter' type='radio' value='neuter' />
<label for='herogenderneuter'>neuter</label>
<input name='herogender' id='herogenderrandom' type='radio' value='' />
<label for='herogenderrandom'>random</label>
</li>
<li>
Villain:
<input name='villaingender' id='villaingenderfemale' type='radio' value='female' checked='checked' />
<label for='villaingenderfemale'>female</label>
<input name='villaingender' id='villaingendermale' type='radio' value='male' />
<label for='villaingendermale'>male</label>
<input name='villaingender' id='villaingenderneuter' type='radio' value='neuter' />
<label for='villaingenderneuter'>neuter</label>
<input name='villaingender' id='villaingenderrandom' type='radio' value='' />
<label for='villaingenderrandom'>random</label>
</li>
<li>
Others:
<input name='peoplegender' id='peoplegenderfemale' type='radio' value='female' checked='checked' />
<label for='peoplegenderfemale'>female</label>
<input name='peoplegender' id='peoplegendermale' type='radio' value='male' />
<label for='peoplegendermale'>male</label>
<input name='peoplegender' id='peoplegenderneuter' type='radio' value='neuter' />
<label for='peoplegenderneuter'>neuter</label>
<input name='peoplegender' id='peoplegenderrandom' type='radio' value='' />
<label for='peoplegenderrandom'>random</label>
</li>
</ul>
<p>
Verb tense:
<input name='tense' id='tensepast' type='radio' value='past' checked='checked' />
<label for='tensepast'>past</label>
<input name='tense' id='tensepresent' type='radio' value='present' />
<label for='tensepresent'>present</label>
</p>
<p>
<input name="bossfight" id='bossfight' type="checkbox" />
<label for='bossfight'>Boss Fight</label>
</p>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<input value="generate" onclick="javascript:guiGet();" type="submit" accesskey="g" title="shift-alt g" />
<input value="clear" type="reset" title="shift-alt c" />
<br />
<br />
<textarea id="output" cols="35" rows="20" name="fairytale"> </textarea>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
</center>
</form>
<script type="text/javascript" src="node_modules/underscore/underscore.js"></script>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<!-- TODO: this should be local. ??? it slows down loading.... -->
<script src="https://unpkg.com/nlp_compromise@latest/builds/nlp_compromise.min.js"></script>
<script type="text/javascript" src="sugar.min.js"></script>
<script type="text/javascript" src="tokenizer.web.js"></script>
<script type="text/javascript" src="cleaner.js"></script>
<script type="text/javascript" src="default.templates.js"></script>
<script type="text/javascript" src="templates.js"></script>
<script type="text/javascript" src="words.js"></script>
<script type="text/javascript" src="wordbank.test.js"></script>
<script type="text/javascript" src="templates.business.js"></script>
<script type="text/javascript" src="business.wordbank.js"></script>
<script type="text/javascript" src="gui.js"></script>
<script type="text/javascript" src="propp.js"></script>
<script type="text/javascript">
// remove when running in browser
// one of the npm modules won't work in the browser if it remains
// TODO: document which one!
delete(window.module);
</script>
</body>
</html>