-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
231 lines (228 loc) · 12.2 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>PenAndPaperFloorplanner</title>
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="content">
<canvas id="canvas"> Your browser does not support the HTML 5 Canvas.</canvas>
<div id="sidebar">
<div class="tab mode buttonRow">
<button type="button" id="floorplanButton" class="tabLinks mode"></button>
<button type="button" id="roomButton" class="tabLinks mode"></button>
<button type="button" id="furnitureButton" class="tabLinks mode"></button>
<button type="button" id="presentationButton" class="tabLinks mode"></button>
</div>
<div id="floorplanTab" class="tabContent mode">
<table>
<tr>
<td><label id="distanceInputLabel" for="distanceInput"></label></td>
<td class="inputTD">
<input type="number" id="distanceInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td colspan="2">
<label id="loadFloorplanButton" class="loadInputClass w100pc" for="loadFloorplan" style="padding: 2px 0px;text-align: center;"></label>
<input type="file" id="loadFloorplan" class="loadFileClass">
</td>
</tr>
<tr>
<td colspan="2">
<button id="clearFloorplanButton" class="addButton"></button>
</td>
</tr>
</table>
</div>
<div id="roomTab" class="tabContent mode">
<table>
<tr>
<th id="cornerHead" colspan="2"></th>
</tr>
<tr>
<td><label id="nodeTransSliderLabel" for="nodeTransSlider"></label></td>
<td class="inputTD">
<input type="range" id="nodeTransSlider" class="w100pc" min="5" max="750" value="50">
</td>
</tr>
<tr>
<td><label id="nodeExtendSliderLabel" for="nodeExtendSlider"></label></td>
<td class="inputTD">
<input type="range" id="nodeExtendSlider" class="w100pc" min="5" max="750" value="150">
</td>
</tr>
<tr>
<th id="labelHead" colspan="2"></th>
</tr>
<form>
<tr>
<td><label id="labelNameInputLabel" for="labelNameInput"></label></td>
<td class="inputTD">
<input id="labelNameInput" value="Livingroom" class="w100pc">
</td>
</tr>
<tr>
<td><label id="labelHeightInputLabel" for="labelHeightInput"></label></td>
<td class="inputTD">
<input type="number" id="labelHeightInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td colspan="2">
<button id="addLabelButton" class="addButton"></button>
</td>
</tr>
</form>
<tr>
<th id="openableHead" colspan="2"></th>
</tr>
<form>
<tr>
<td><label id="openableWidthInputLabel" for="openableWidthInput"></label></td>
<td class="inputTD">
<input type="number" id="openableWidthInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td><label id="openableTypeInputLabel" for="leftOpenableButton"></label></td>
<td class="tab openableType buttonRow">
<button type="button" id="leftOpenableButton" class="tabLinks openableType">L</button>
<button type="button" id="rightOpenableButton" class="tabLinks openableType">R</button>
<button type="button" id="doubleOpenableButton" class="tabLinks openableType">D</button>
</td>
</tr>
<tr>
<td colspan="2">
<button id="addOpenableButton" class="addButton"></button>
</td>
</tr>
</form>
</table>
</div>
<div id="furnitureTab" class="tabContent mode">
<table>
<form>
<tr>
<td><label id="nameInputLabel" for="nameInput"></label></td>
<td class="inputTD">
<input id="nameInput" class="w100pc" value="Couch">
</td>
</tr>
<tr>
<td><label id="typeInputLabel" for="circleButton"></label></td>
<td class="tab furnitureType buttonRow">
<button type="button" id="circleButton" class="tabLinks furnitureType">○</button>
<button type="button" id="rectangleButton" class="tabLinks furnitureType">▭</button>
<button type="button" id="LButton" class="tabLinks furnitureType">╔</button>
<button type="button" id="UButton" class="tabLinks furnitureType">╔╗</button>
</td>
</tr>
<tbody id="circleTab" class="tabContent furnitureType">
<tr>
<td><label id="circleWidthInputLabel" for="circleWidthInput"></label></td>
<td class="inputTD">
<input type="number" id="circleWidthInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td><label id="circleHeightInputLabel" for="circleHeightInput"></label></td>
<td class="inputTD">
<input type="number" id="circleHeightInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
</tbody>
<tbody id="rectangleTab" class="tabContent furnitureType">
<tr>
<td><label id="widthInputLabel" for="widthInput"></label></td>
<td class="inputTD">
<input type="number" id="widthInput" class="w100pc" min="1" value="2000" required="">
</td>
</tr>
<tr>
<td><label id="heightInputLabel" for="heightInput"></label></td>
<td class="inputTD">
<input type="number" id="heightInput" class="w100pc" min="1" value="1000" required="">
</td>
</tr>
</tbody>
<tbody id="LTab" class="tabContent furnitureType">
<tr>
<td><label id="LWidthInputLabel" for="LWidthInput1"></label></td>
<td class="inputTD">
<input type="number" id="LWidthInput1" class="w50pc" min="1" value="1000" required="">
<input type="number" id="LWidthInput2" class="w50pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td><label id="LHeightInputLabel" for="LHeightInput1"></label></td>
<td class="inputTD">
<input type="number" id="LHeightInput1" class="w50pc" min="1" value="2000" required="">
<input type="number" id="LHeightInput2" class="w50pc" min="1" value="1000" required="">
</td>
</tr>
</tbody>
<tbody id="UTab" class="tabContent furnitureType">
<tr>
<td><label id="UWidthInputLabel" for="UWidthInput1"></label></td>
<td class="inputTD">
<input type="number" id="UWidthInput1" class="w33pc" min="1" value="1000" required="">
<input type="number" id="UWidthInput2" class="w33pc" min="1" value="1000" required="">
<input type="number" id="UWidthInput3" class="w33pc" min="1" value="1000" required="">
</td>
</tr>
<tr>
<td><label id="UHeightInputLabel" for="UHeightInput1"></label></td>
<td class="inputTD">
<input type="number" id="UHeightInput1" class="w33pc" min="1" value="2000" required="">
<input type="number" id="UHeightInput2" class="w33pc" min="1" value="1000" required="">
<input type="number" id="UHeightInput3" class="w33pc" min="1" value="2000" required="">
</td>
</tr>
</tbody>
<tr>
<td colspan="2">
<button id="addFurnitureButton" class="addButton"></button>
</td>
</tr>
</form>
</table>
</div>
<div id="presentationTab" class="tabContent mode">
<table>
<tr>
<th id="presentationOptionsHead" colspan="2"></th>
</tr>
<tr>
<td><input type="checkbox" id="edgeLabelCheckbox" class="checkboxClass"></td>
<td><label id="edgeLabelCheckboxLabel" for="edgeLabelCheckbox"></label></td>
</tr>
</table>
</div>
<div id="bottomMenu" class="buttonRow">
<button type="button" id="saveButton"></button>
<label id="loadButton" class="loadInputClass" for="loadInput"></label>
<input type="file" id="loadInput" class="loadFileClass">
<button type="button" id="exportButton"></button>
<button type="button" id="printButton"></button>
</div>
<div id="bottomMenu" class="buttonRow">
<button type="button" id="helpButton"></button>
</div>
</div>
</div>
<script src="js/utils.js"></script>
<script src="js/defs.js"></script>
<script src="js/localization.js"></script>
<script src="js/graph.js"></script>
<script src="js/image.js"></script>
<script src="js/movable.js"></script>
<script src="js/draw.js"></script>
<script src="js/io.js"></script>
<script src="js/inputEvents.js"></script>
<script src="js/events.js"></script>
<script src="js/init.js"></script>
</body>
</html>