blob: aec5e2526c559e5791bcd8382436c4bd2ea89319 (
plain)
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
|
<style type="text/css">
html,body{width:100%;height:100%;margin:0;padding:0;}
body {
overflow: hidden;
}
#perspective,
#perspective .mx-scene {
position: absolute;
left:0%;
top:0px;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
#orthographic {
position: absolute;
left:50%;
top:0px
}
.hud {
position: absolute;
top: 0;
left: 0;
padding: 10px;
background: white;
}
.ortho-hud {
left: 50%;
border-left: 1px solid black;
}
#url { width: 300px }
.hud span { color: #888; cursor: pointer; }
.hud span.active { color: #000; }
.blueprintUpload {
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
width: 340px;
position: absolute;
top: 50%; left: 50%;
background: white;
padding: 10px;
border: 1px solid black;
box-shadow: -3px 3px #000;
-webkit-transform: translate3D(0%,-200%,0);
transform: translate3D(0%,-200%,0);
margin-left: -175px;
margin-top: -200px;
opacity: 0;
}
.blueprintUpload.active {
-webkit-transform: translate3D(0,0,0);
transform: translate3D(0,0,0);
opacity: 1;
}
.blueprintUpload .toolButton {
float: none;
width: 108px;
display: inline-block;
}
.blueprintUpload .url {
font-size: 15px;
border: 1px solid #888;
padding: 2px;
font-weight: 300;
position: relative;
top: 3px;
margin-right: 10px;
width: 190px;
}
.blueprintUpload p {
font-weight: 300;
font-size: 13px;
}
.blueprintUpload .blueprints {
display: none;
}
.blueprintUpload .blueprints h5 {
width: 250px;
margin: 10px auto;
padding-top: 9px;
}
.blueprints .blueprint {
border: 1px solid black;
background: white;
padding: 0px;
position: relative;
display: inline-block;
}
.blueprints .blueprint img {
height: 100px;
max-width: 200px;
display: block;
cursor: pointer;
}
.blueprints .blueprint .remove {
box-shadow: 0 1px 2px #888;
cursor: pointer;
position: absolute;
color: red;
top: 7px;
right: 7px;
width: 20px; height: 20px;
text-align: center;
background: #fff;
border-radius: 50%;
}
.blueprints .blueprint .remove span {
position: relative;
top: -2px;
}
.blueprintUpload .wallpaperUpload .upload-icon {
margin: 0 4px;
}
.uploadNewBlueprint {
color: #333;
border-bottom: 1px solid;
cursor: pointer;
}
</style>
<div id="blueprintView">
<div id="perspective"></div>
<div id="orthographic"></div>
<div class="hud persp-hud">
<input type="text" id="url" placeholder="paste an image URL here!">
<span class="ion-ionic active" data-role="orbit-mode"></span>
<span class="ion-archive" data-role="keyboard-mode"></span>
</div>
<div class="hud ortho-hud">
<span class="ion-navigate" data-role="arrow-mode"></span>
<span class="ion-ios-pulse active" data-role="polyline-mode"></span>
<span class="ion-ios-grid-view-outline" data-role="ortho-polyline-mode"></span>
<span class="ion-scissors" data-role="eraser-mode"></span>
</div>
</div>
<div class="mediaDrawer fixed animate active blueprintEditor">
<div class="box">
<div class="blueprintUpload">
<h2>Upload your Blueprint</h2>
<p>
Upload an image which you will trace to make a floor plan.
Images should be at least 1000x1000.
</p>
<input type="hidden" name="_csrf" value="[[- token ]]">
<input type="text" class="url" placeholder="Enter an image URL or...">
<div class="wallpaperUpload toolButton">
<form>
<span class="ion-ios-upload-outline upload-icon"></span>
<label>Upload a File</label>
<input type="file" accept="image/*" multiple>
</form>
</div>
<div class="blueprints">
<h5>Your uploaded blueprints</h5>
</div>
</div>
<div class="blueprintScaler">
<div class="blueprintInfo">
Please tell us the scale of your blueprint.
Click both corners of a wall, and then enter how long the wall is.
<br><br>
Do you want to <span class="uploadNewBlueprint">upload a blueprint?</span>
</div>
<div id="blueprintMap">
</div>
<div id="blueprintDimensions">
<input type="text" name="blueprint-dimensions">
<select id="blueprint-units" name="blueprint-units">
<option value="ft">foot</option>
<option value="m">meter</option>
</select>
<button id="saveBlueprint">Save</button>
</div>
</div>
</div>
</div>
|