-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
219 lines (198 loc) · 7.32 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
<html>
<head>
<title>Roomie</title>
<meta charset="utf-8">
<!-- Fonts and icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<link rel="shortcut icon" href="./public/img/favicon.ico" type="image/x-icon">
</head>
<body>
<nav class="navbar navbar-danger" role="navigation">
<div class="container-fluid" id="nav">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Roomie</a>
</div>
<div class="collapse navbar-collapse" id="navigation-doc">
<ul class="nav navbar-nav navbar-right">
<li>
<a class="hover" id="btnStartVR">View in 3D</a>
</li>
<li>
<a class="hover" id="btnStart">Start</a>
</li>
<li>
<a class="hover" data-toggle="modal" data-target="#addItemModel"><i class="material-icons">add</i>Add New Furniture</a>
</li>
</ul>
</div>
</div>
</nav>
<br><br>
<div id="ItemsInList">
<h1 style="float: left">Furniture</h1>
<table class="table" id="objectList">
<thead>
<tr>
<th>Type</th>
<th>Width</th>
<th>Height</th>
<th class="text-right">Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="content">
</div>
</div>
<div id="sliders" style="display:none">
<h3 id="sliderWidthDisplayValue">Room Width</h3>
<div class="slider slider-danger" id="sliderWidth"></div>
<h3 id="sliderHeightDisplayValue">Room Length</h3>
<div class="slider slider-danger" id="sliderHeight"></div>
</div>
<!-- Modal Core -->
<div class="modal fade" id="addItemModel" tabindex="-1" role="dialog" aria-labelledby="addItemModel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Add Furniture</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
Type:
<div class="radio">
<label>
<input type="radio" name="AddTypeInput" value="couch">
Couch
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="AddTypeInput" value="chair" checked="true">
Chair
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="AddTypeInput" value="table">
Table
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="AddTypeInput" value="lamp">
Lamp
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="AddTypeInput" value="plant">
Plant
</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group label-floating">
<label class="control-label">Height</label>
<input id="AddHeight" type="number" class="form-control">
</div>
</div>
<div class="col-md-4">
<div class="form-group label-floating">
<label class="control-label">Width</label>
<input id="AddWidth" type="number" class="form-control">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-simple" data-dismiss="modal">Close</button>
<button id="btnAddItem" type="button" class="btn btn-info btn-simple" data-dismiss="modal">Add Item</button>
</div>
</div>
</div>
</div>
<!-- Modal Edits -->
<div class="modal fade" id="editItemModel" tabindex="-1" role="dialog" aria-labelledby="editItemModel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Edit Furniture</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
Type:
<div class="radio">
<label>
<input type="radio" name="EditTypeInput" value="Couch">
Couch
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="EditTypeInput" value="Chair">
Chair
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="EditTypeInput" value="Table">
Table
</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group label-floating">
<label class="control-label">Height</label>
<input id="EditHeight" type="number" class="form-control">
</div>
</div>
<div class="col-md-4">
<div class="form-group label-floating">
<label class="control-label">Width</label>
<input id="EditWidth" class="form-control">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-simple" data-dismiss="modal">Close</button>
<button id="btnEditItem" type="button" class="btn btn-info btn-simple" data-dismiss="modal">Edit Item</button>
</div>
</div>
</div>
</div>
<!-- Modal Edits -->
<div class="modal fade" id="VRModel" tabindex="-1" role="dialog" aria-labelledby="VRModel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">View in VR</h4>
</div>
<div class="modal-body">
<div class="VRView">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info btn-simple" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="public/bundle.js"></script>
</body>
</html>