-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
231 lines (231 loc) · 8.81 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
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
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Crosswords - Puzzle Generator for Teachers</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" type="text/css" href="css/main.css" media="all">
<link rel="stylesheet" type="text/css" href="css/print.css" media="print">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.crossword-generator.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<header>
<div class="greeter">Welcome to ...</div>
<table class="crossword title noSelect">
<tr>
<td></td>
<td></td>
<td class="letter">W</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="letter">C</td>
<td class="letter">R</td>
<td class="letter">O</td>
<td class="letter">S</td>
<td class="letter">S</td>
</tr>
<tr>
<td></td>
<td></td>
<td class="letter">R</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td class="letter">D</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td class="letter">S</td>
<td></td>
<td></td>
</tr>
</table>
<div class="greeter">Happy puzzling!</div>
</header>
<section class="tabs">
<ul class="tabTitle noSelect clear-fix">
<li class="active">About</li>
<li>How To?</li>
</ul>
<div class="tabBody">
<div class="tab">
<p>
Crosswords lets you generate sparse crossword puzzles out of a given
set of words. Sparse means that the puzzle will not be arranged to
completely fill a rectangular region (this would correspond to a
dense crossword puzzle).
</p>
</div>
<div class="tab">
<p>
To start out, use the <button class="inline inactive">Add Word</button>
button to set up a list of words. Once you're done, press
<button class="inline inactive">Generate Crossword</button>
in order to start the crossword generator. Your puzzle will appear
within seconds provided that the generator succeeds.
</p>
<p>
If you're not satisfied with the layout of the crossword, use the
<button class="inline inactive">Next Alternative</button> and
<button class="inline inactive">Previous Alternative</button> buttons to
cycle through different combinations of word arrangements. You can also
rotate the puzzle by 90 degrees using the <button class="inline inactive">Rotate</button>
button.
</p>
<p>
Once you found your desired word arrangement, enter clues for each
word in the text areas below the puzzle. For each word/clue pair you can
decide whether to show students the clue and ask for the word or do it the
other way around.
</p>
<p>
Finally, you can print both the puzzle and clues with the
<button class="inline inactive">Print (...)</button> buttons at the bottom
of the page. The teacher variant will include both words and clues. The student
variant will have only words or clues depending on the configuration you chose.
</p>
<p>
Note that the puzzle generation will fail if the specified words don't
allow for a proper connection. For instance, you cannot build a crossword
out of the words 'milk', 'sugar' and 'honey' since they don't have any
letters in common. In such a case the application will notify you
and suggest that you adapt your list of words.
</p>
</div>
</div>
</section>
<section class="inputButtons">
<div class="buttonBox">
<button name="add">Add Word</button>
<button name="generate">Generate Crossword</button>
<button name="clear">Clear Everything</button>
</div>
</section>
<section class="inputData">
<h3>Words</h3>
<ul class="inputData inputWords">
<li class="clear-fix">
<div class="dragHandleWrapper">
<div class="dragHandle">
<span class="counter"></span>
</div>
</div>
<div class="spacer"></div>
<div class="column word">
<input id="word1" name="word" type="text" value="Cross" placeholder="Enter a word...">
</div>
<div class="column removeButton">
<button name="remove">X</button>
</div>
</li>
<li class="clear-fix">
<div class="dragHandleWrapper">
<div class="dragHandle">
<span class="counter"></span>
</div>
</div>
<div class="spacer"></div>
<div class="column word">
<input id="word2" name="word" type="text" value="Word" placeholder="Enter a word...">
</div>
<div class="column removeButton">
<button name="remove">X</button>
</div>
</li>
</ul>
</section>
<section class="crosswordButtons">
<div class="buttonBox">
<button name="previous" disabled="disabled">Previous Alternative</button>
<button name="next" disabled="disabled">Next Alternative</button>
<button name="rotate" disabled="disabled">Rotate</button>
</div>
</section>
<section class="crossword">
<div id="placeholderMessage" class="infoMessage">
<p>
Your crossword will appear here after you hit the
<button class="inline inactive">Generate Crossword</button> button.
</p>
</div>
<div id="outdatedMessage" class="infoMessage">
<p>
You've changed the set of input words. Hence, the crossword shown below
is probably outdated. To generate a new crossword, hit the
<button class="inline inactive">Generate Crossword</button> button.
</p>
</div>
<div id="errorMessage" class="infoMessage">
<p>
The set of words you specified does not seem to fit into a crossword.
Please adapt your input by adding or removing words and hit the
<button class="inline inactive">Generate Crossword</button>
button again.
</p>
</div>
<div id="crosswordWrapper" class="noSelect clear-fix"></div>
</section>
<section class="inputData">
<h3>Clues</h3>
<ul class="inputData inputClues">
<li class="clear-fix">
<div class="dragHandleWrapper">
<div class="dragHandle">
<span class="counter"></span>
</div>
</div>
<div class="spacer"></div>
<div class="column clue">
<div class="wordCopy">"<span></span>"</div>
<textarea id="clue1" name="clue" rows="2" placeholder="Enter a clue...">A structure consisting of an upright and a transverse piece</textarea>
<div id="clueSwitch1" class="clueSwitch">
<label for="clueSwitch1">Ask for: </label>
<button class="segment left word active">Word</button>
<button class="segment right clue">Clue</button>
</div>
</div>
</li>
<li class="clear-fix">
<div class="dragHandleWrapper">
<div class="dragHandle">
<span class="counter"></span>
</div>
</div>
<div class="spacer"></div>
<div class="column clue">
<div class="wordCopy">"<span></span>"</div>
<textarea id="clue2" name="clue" rows="2" placeholder="Enter a clue...">A unit of language</textarea>
<div id="clueSwitch2" class="clueSwitch">
<label for="clueSwitch2">Ask for: </label>
<button class="segment left word active">Word</button>
<button class="segment right clue">Clue</button>
</div>
</div>
</li>
</ul>
</section>
<section class="printButtons">
<div class="buttonBox">
<button name="printTeacher" disabled="disabled">Print (Teacher Variant)</button>
<button name="printStudent" disabled="disabled">Print (Student Variant)</button>
</div>
</section>
<section class="clues"></section>
<footer></footer>
</body>
</html>