-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconstructor.html
More file actions
177 lines (146 loc) · 8 KB
/
constructor.html
File metadata and controls
177 lines (146 loc) · 8 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Crossword Constructor</title>
<meta charset="utf-8">
<meta name="description" content="Create a crossword puzzle for publication in the New York Times (nytimes)">
<meta name="author" content="Jeff Cole">
<link rel="stylesheet" href="constructor.css">
<link rel="stylesheet" href="shared.css">
<script>
window.onload = function () {
Initialize();
};
</script>
<script type="text/javascript" src="constructor.js"></script>
</head>
<body>
<div class="TitleInfo">
<input class="Title" id="Title" type="text" value="Title" onchange="OnTitleChanged()">
</div>
<article class="PuzzleLayout">
<section class="BoardAndClueBar">
<div class="ClueBar">
<div id="ClueBarNumber"></div>
<textarea type="text" id="ClueBarText"></textarea>
</div>
<svg id="Board" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 501.00 501.00" onmousedown="OnBoardClick(evt)">
<g id="BoardCells">
<g>
<rect class="Cell" x="3.0" y="3.0" width="33.0" height="33.0" fill="none"></rect>
<text x="5.0" y="14.5" text-anchor="start" font-size="11.0">1</text>
<text x="19.5" y="33.25" text-anchor="middle" font-size="22.0">A</text>
</g>
</g>
<g id="BoardGrid">
<path d="M3.00,36.00 l495.00,0.00 M3.00,69.00 l495.00,0.00 M3.00,102.00 l495.00,0.00 M3.00,135.00 l495.00,0.00 M3.00,168.00 l495.00,0.00 M3.00,201.00 l495.00,0.00 M3.00,234.00 l495.00,0.00 M3.00,267.00 l495.00,0.00 M3.00,300.00 l495.00,0.00 M3.00,333.00 l495.00,0.00 M3.00,366.00 l495.00,0.00 M3.00,399.00 l495.00,0.00 M3.00,432.00 l495.00,0.00 M3.00,465.00 l495.00,0.00 M36.00,3.00 l0.00,495.00 M69.00,3.00 l0.00,495.00 M102.00,3.00 l0.00,495.00 M135.00,3.00 l0.00,495.00 M168.00,3.00 l0.00,495.00 M201.00,3.00 l0.00,495.00 M234.00,3.00 l0.00,495.00 M267.00,3.00 l0.00,495.00 M300.00,3.00 l0.00,495.00 M333.00,3.00 l0.00,495.00 M366.00,3.00 l0.00,495.00 M399.00,3.00 l0.00,495.00 M432.00,3.00 l0.00,495.00 M465.00,3.00 l0.00,495.00" fill="none" vector-effect="non-scaling-stroke" stroke="dimgray"></path>
<rect x="1.50" y="1.50" width="498.00" height="498.00" fill="none" stroke-width="3.00" stroke="black"></rect>
</g>
</svg>
</section>
<section class="TabsRegion">
<input class="TabsInput" id="tab1" type="radio" name="tabs" checked>
<label class="TabsLabel" for="tab1">General</label>
<input class="TabsInput" id="tab2" type="radio" name="tabs">
<label class="TabsLabel" for="tab2">Clues</label>
<input class="TabsInput" id="tab3" type="radio" name="tabs">
<label class="TabsLabel" for="tab3">Auto-Fill</label>
<input class="TabsInput" id="tab4" type="radio" name="tabs">
<label class="TabsLabel" for="tab4">Sources</label>
<div class="TabView" id="content1">
<div class="SettingsRegion">
<table>
<tr>
<td>Title:</td>
<td><input id="SettingsRegionTitle" type="test" class="SettingsInput"/></td>
</tr>
<tr>
<td>Author:</td>
<td><input id="SettingsRegionAuthor" type="test" class="SettingsInput"/></td>
</tr>
<tr>
<td>Copyright:</td>
<td><input id="SettingsRegionCopyright" type="test" class="SettingsInput"/></td>
</tr>
</table>
</div>
<div class="SettingsRegion">
<div class="SettingsRegionTitle">Grid Size</div>
<label class="SizesContainer">Weekday<div style="font-size:11px">(15x15)</div>
<input id="SettingsSizeWeekday" type="radio" name="sizeRadio" checked="checked" onchange="SizeTypeChanged('Weekday')">
<span class="checkmark"></span>
</label>
<label class="SizesContainer">Sunday<div style="font-size:11px">(21x21)</div>
<input id="SettingsSizeSunday" type="radio" name="sizeRadio" onchange="SizeTypeChanged('Sunday')">
<span class="checkmark"></span>
</label>
<label class="SizesContainer" style="padding-right:0px">Custom<div style="font-size:11px">(Rows x Columns)</div>
<input id="SettingsSizeCustom" type="radio" name="sizeRadio" onchange="SizeTypeChanged('Custom')">
<span class="checkmark"></span>
</label>
<div id="CustomSizeRegion">
<table id="CustomSizesTable">
<tr>
<td><input id="CustomSizeRows" type="text" class="SizeInput" disabled="true"/></td>
<td><input id="CustomSizeColumns" type="text" class="SizeInput" disabled="true"/></td>
</tr>
</table>
</div>
</div>
</div>
<div class="TabView" id="content2">
<div class="ClueList">
<h3 class="ClueTitle">Across</h3>
<ol id="CluesListAcross" class="ClueListList">
<li class="ClueLI">
<span class="ClueLabel">1</span>
<input class="ClueText" type="text">
</li>
</ol>
</div>
<div class="ClueList">
<h3 class="ClueTitle">Down</h3>
<ol id="CluesListDown" class="ClueListList">
<li class="ClueLI">
<span class="ClueLabel">1</span>
<span class="ClueText">Clue one</span>
</li>
<li class="ClueLI">
<span class="ClueLabel">1</span>
<span class="ClueText">This is a clue text here with many letters</span>
</li>
<li class="ClueLI">
<span class="ClueLabel">1</span>
<span class="ClueText">This is a clue text</span>
</li>
</ol>
</div>
<div id="SelectedWordPatternRegion">
<h3 class="ClueTitle">Answer:</h3>
<center>
<div id="SelectedWordPatternGridRegion">
<div class="SelectedWordPatternGridCell">A</div><div class="SelectedWordPatternGridCell">A</div>
</div>
</center>
</div>
<div id="SuggestedWordsList">
<h3 class="ClueTitle" id="SuggestWordsTitle">Suggestions:</h3>
<ol id="SuggestedAnswerList" class="ClueListList">
</ol>
</div>
</div>
<div class="TabView" id="content3">
</div>
<div class="TabView" id="content4">
</div>
</section>
<section class="CluesLayout">
<div id="EditToolsLayout">
<center>
<h4 id="EditToolsLayoutTitle">Edit Tools</h4>
</center>
</div>
</section>
</article>
</body>
</html>