-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
225 lines (199 loc) · 8.48 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
<!DOCTYPE html>
<html>
<head>
<title>Blueprint 3D - Example</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/example.css" rel="stylesheet">
<script src="js/three.min.js"></script>
<script src="js/blueprint3d.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/items.js"></script>
<script src="js/example.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row main-row">
<!-- Left Column -->
<div class="col-xs-3 sidebar">
<!-- Main Navigation -->
<ul class="nav nav-sidebar">
<li id="floorplan_tab"><a href="#">
Edit Floorplan
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
</a></li>
<li id="design_tab"><a href="#">
Design
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
</a></li>
<li id="items_tab"><a href="#">
Add Items
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
</a></li>
</ul>
<hr />
<!-- Context Menu --
<div id="context-menu">
<div style="margin: 0 20px">
<span id="context-menu-name" class="lead"></span>
<br /><br />
<button class="btn btn-block btn-danger" id="context-menu-delete">
<span class="glyphicon glyphicon-trash"></span>
Delete Item
</button>
<br />
<div class="panel panel-default">
<div class="panel-heading">Adjust Size</div>
<div class="panel-body" style="color: #333333">
<div class="form form-horizontal" class="lead">
<div class="form-group">
<label class="col-sm-5 control-label">
Width
</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="item-width">
</div>
</div>
<div class="form-group">
<label class="col-sm-5 control-label">
Depth
</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="item-depth">
</div>
</div>
<div class="form-group">
<label class="col-sm-5 control-label">
Height
</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="item-height">
</div>
</div>
</div>
<small><span class="text-muted">Measurements in inches.</span></small>
</div>
</div>
<label><input type="checkbox" id="fixed" /> Lock in place</label>
<br /><br />
</div>
</div>
<!-- Floor textures -->
<div id="floorTexturesDiv" style="display:none; padding: 0 20px">
<div class="panel panel-default">
<div class="panel-heading">Adjust Floor</div>
<div class="panel-body" style="color: #333333">
<div class="col-sm-6" style="padding: 3px">
<a href="#" class="thumbnail texture-select-thumbnail" texture-url="rooms/textures/light_fine_wood.jpg" texture-stretch="false" texture-scale="300">
<img alt="Thumbnail light fine wood" src="rooms/thumbnails/thumbnail_light_fine_wood.jpg" />
</a>
</div>
</div>
</div>
</div>
<!-- Wall Textures -->
<div id="wallTextures" style="display:none; padding: 0 20px">
<div class="panel panel-default">
<div class="panel-heading">Adjust Wall</div>
<div class="panel-body" style="color: #333333">
<div class="col-sm-6" style="padding: 3px">
<a href="#" class="thumbnail texture-select-thumbnail" texture-url="rooms/textures/marbletiles.jpg" texture-stretch="false" texture-scale="300">
<img alt="Thumbnail marbletiles" src="rooms/thumbnails/thumbnail_marbletiles.jpg" />
</a>
</div>
<div class="col-sm-6" style="padding: 3px">
<a href="#" class="thumbnail texture-select-thumbnail" texture-url="rooms/textures/wallmap_yellow.png" texture-stretch="true" texture-scale="">
<img alt="Thumbnail wallmap yellow" src="rooms/thumbnails/thumbnail_wallmap_yellow.png" />
</a>
</div>
<div class="col-sm-6" style="padding: 3px">
<a href="#" class="thumbnail texture-select-thumbnail" texture-url="rooms/textures/light_brick.jpg" texture-stretch="false" texture-scale="100">
<img alt="Thumbnail light brick" src="rooms/thumbnails/thumbnail_light_brick.jpg" />
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Right Column -->
<div class="col-xs-9 main">
<!-- 3D Viewer -->
<div id="viewer">
<div id="main-controls">
<a href="#" class="btn btn-default btn-sm" id="new">
New Plan
</a>
<a href="#" class="btn btn-default btn-sm" id="saveFile">
Save Plan
</a>
<a class="btn btn-sm btn-default btn-file">
<input type="file" class="hidden-input" id="loadFile">
Load Plan
</a>
</div>
<div id="camera-controls">
<a href="#" class="btn btn-default bottom" id="zoom-out">
<span class="glyphicon glyphicon-zoom-out"></span>
</a>
<a href="#" class="btn btn-default bottom" id="reset-view">
<span class="glyphicon glyphicon glyphicon-home"></span>
</a>
<a href="#" class="btn btn-default bottom" id="zoom-in">
<span class="glyphicon glyphicon-zoom-in"></span>
</a>
<span> </span>
<a class="btn btn-default bottom" href="#" id="move-left" >
<span class="glyphicon glyphicon-arrow-left"></span>
</a>
<span class="btn-group-vertical">
<a class="btn btn-default" href="#" id="move-up">
<span class="glyphicon glyphicon-arrow-up"></span>
</a>
<a class="btn btn-default" href="#" id="move-down">
<span class="glyphicon glyphicon-arrow-down"></span>
</a>
</span>
<a class="btn btn-default bottom" href="#" id="move-right" >
<span class="glyphicon glyphicon-arrow-right"></span>
</a>
</div>
<div id="loading-modal">
<h1>Loading...</h1>
</div>
</div>
<!-- 2D Floorplanner -->
<div id="floorplanner">
<canvas id="floorplanner-canvas"></canvas>
<div id="floorplanner-controls">
<button id="move" class="btn btn-sm btn-default">
<span class="glyphicon glyphicon-move"></span>
Move Walls
</button>
<button id="draw" class="btn btn-sm btn-default">
<span class="glyphicon glyphicon-pencil"></span>
Draw Walls
</button>
<button id="delete" class="btn btn-sm btn-default">
<span class="glyphicon glyphicon-remove"></span>
Delete Walls
</button>
<span class="pull-right">
<button class="btn btn-primary btn-sm" id="update-floorplan">Done »</button>
</span>
</div>
<div id="draw-walls-hint">
Press the "Esc" key to stop drawing walls
</div>
</div>
<!-- Add Items -->
<div id="add-items">
<div class="row" id="items-wrapper">
<!-- Items added here by items.js -->
</div>
</div>
</div>
<!-- End Right Column -->
</div>
</div>
</body>
</html>