-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
522 lines (488 loc) · 33.5 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HOME ROUGH EDITOR v0.93</title>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<!-- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> -->
<link rel="stylesheet" href="style.css">
</head>
<body style="background:#f2eee5;margin:0;padding:0; ">
<header>Edité par Home Rough Editor Ver.0.91</header>
<svg id="lin" viewBox="0 0 1100 700" preserveAspectRatio="xMidYMin slice" xmlns="http://www.w3.org/2000/svg" style="z-index:2;margin:0;padding:0;width:100vw;height:100vh;position:absolute;top:0;left:0;right:0;bottom:0">
<defs>
<linearGradient id="gradientRed" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#e65d5e" stop-opacity="1"/>
<stop offset="100%" stop-color="#e33b3c" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientYellow" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#FDEB71" stop-opacity="1"/>
<stop offset="100%" stop-color="#F8D800" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientGreen" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#c0f7d9" stop-opacity="1"/>
<stop offset="100%" stop-color="#6ce8a3" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientSky" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#c4e0f4" stop-opacity="1"/>
<stop offset="100%" stop-color="#87c8f7" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientOrange" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#f9ad67" stop-opacity="1"/>
<stop offset="100%" stop-color="#f97f00" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientWhite" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#ffffff" stop-opacity="1"/>
<stop offset="100%" stop-color="#f0f0f0" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientGrey" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#666" stop-opacity="1"/>
<stop offset="100%" stop-color="#aaa" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientBlue" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#4f72a6" stop-opacity="1"/>
<stop offset="100%" stop-color="#365987" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientPurple" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#E2B0FF" stop-opacity="1"/>
<stop offset="100%" stop-color="#9F44D3" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientPink" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#f6c4dd" stop-opacity="1"/>
<stop offset="100%" stop-color="#f699c7" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientBlack" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#3c3b3b" stop-opacity="1"/>
<stop offset="100%" stop-color="#000000" stop-opacity="1"/>
</linearGradient>
<linearGradient id="gradientNeutral" x1="0%" y1="0%" x2="100%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#dbc6a0" stop-opacity="1"/>
<stop offset="100%" stop-color="#c69d56" stop-opacity="1"/>
</linearGradient>
<pattern id="grass" patternUnits="userSpaceOnUse" width="256" height="256">
<image xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWh5nEP_Trwo96CJjev6lnKe0_dRdA63RJFaoc3-msedgxveJd" x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="wood" patternUnits="userSpaceOnUse" width="32" height="256">
<image xlink:href="https://orig00.deviantart.net/e1f2/f/2015/164/8/b/old_oak_planks___seamless_texture_by_rls0812-d8x6htl.jpg" x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="tiles" patternUnits="userSpaceOnUse" width="25" height="25">
<image xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrkoI2Eiw8ya3J_swhfpZdi_ug2sONsI6TxEd1xN5af3DX9J3R" x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="granite" patternUnits="userSpaceOnUse" width="256" height="256">
<image xlink:href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9_nEMhnWVV47lxEn5T_HWxvFwkujFTuw6Ff26dRTl4rDaE8AdEQ" x="0" y="0" width="256" height="256" />
</pattern>
<pattern id="smallGrid" width="60" height="60" patternUnits="userSpaceOnUse">
<path d="M 60 0 L 0 0 0 60" fill="none" stroke="#777" stroke-width="0.25"/>
</pattern>
<pattern id="grid" width="180" height="180" patternUnits="userSpaceOnUse">
<rect width="180" height="180" fill="url(#smallGrid)"/>
<path d="M 200 10 L 200 0 L 190 0 M 0 10 L 0 0 L 10 0 M 0 190 L 0 200 L 10 200 M 190 200 L 200 200 L 200 190" fill="none" stroke="#999" stroke-width="0.8"/>
</pattern>
<pattern id="hatch" width="5" height="5" patternTransform="rotate(50 0 0)" patternUnits="userSpaceOnUse" >
<path d="M 0 0 L 0 5 M 10 0 L 10 10 Z" style="stroke:#666;stroke-width:5;" />
</pattern>
</defs>
<g id="boxgrid">
<rect width="8000" height="5000" x="-3500" y="-2000" fill="url(#grid)" />
</g>
<g id="boxpath"></g>
<g id="boxSurface"></g>
<g id="boxRoom"></g>
<g id="boxwall"></g>
<g id="boxcarpentry"></g>
<g id="boxEnergy"></g>
<g id="boxFurniture"></g>
<g id="boxbind"></g>
<g id="boxArea"></g>
<g id="boxRib"></g>
<g id="boxScale"></g>
<g id="boxText"></g>
<g id="boxDebug"></g>
</svg>
<div id="areaValue"></div>
<div id="reportTools" class="leftBox" style="width:500px;overflow-y: scroll;overflow-x: hidden">
<h2><i class="fa fa-calculator" aria-hidden="true"></i> Report plan.</h2>
<br/><br/>
<h2 class="toHide" id="reportTotalSurface" style="display:none"></h2>
<h2 class="toHide" id="reportNumberSurface" style="display:none"></h2>
<hr/>
<section id="reportRooms" class="toHide" style="display:none">
</section>
<button class="btn btn-info fully" style="margin-top:50px" onclick="$('#reportTools').hide('500', function(){$('#panel').show(300);});mode = 'select_mode';"><i class="fa fa-2x fa-backward" aria-hidden="true" ></i></button>
</div>
<div id="wallTools" class="leftBox">
<h2 id="titleWallTools">Modify the wall</h2>
<hr/>
<section id="rangeThick">
<p>Width [<span id="wallWidthScale"></span>] : <span id="wallWidthVal"></span> cm</span></p>
<input type="range" id="wallWidth" step="0.1" class="range" />
</section>
<ul class="list-unstyled">
<section id="cutWall">
<p>Cut the wall :<br/><small>A cut will be made at each wall encountered.</small></p>
<li><button class="btn btn-default fully" onclick="editor.splitWall();"><i class="fa fa-2x fa-cutlery" aria-hidden="true"></i></button></li>
</section>
<br/>
<section id="separate">
<p>Separation wall :<br/><small>Transform the wall into simple separation line.</small></p>
<li><button class="btn btn-default fully" onclick="editor.invisibleWall();" id="wallInvisible"><i class="fa fa-2x fa-crop" aria-hidden="true"></i></button></li>
</section>
<section id="recombine">
<p>Transform to wall :<br/><small>The thickness will be identical to the last known.</small></p>
<li><button class="btn btn-default fully" onclick="editor.visibleWall();" id="wallVisible"><i class="fa fa-2x fa-crop" aria-hidden="true"></i></button></li>
</section>
<br/>
<li><button class="btn btn-danger fully" id="wallTrash"><i class="fa fa-2x fa-trash-o" aria-hidden="true"></i></button></li>
<li><button class="btn btn-info fully" style="margin-top:50px" onclick="fonc_button('select_mode');$('#boxinfo').html('Mode sélection');$('#wallTools').hide('300');$('#panel').show('300');"><i class="fa fa-2x fa-backward" aria-hidden="true" ></i></button></li>
</ul>
</div>
<div id="objBoundingBox" class="leftBox">
<h2>Modify object</h2>
<hr/>
<section id="objBoundingBoxScale">
<p>Width [<span id="bboxWidthScale"></span>] : <span id="bboxWidthVal"></span> cm</span></p>
<input type="range" id="bboxWidth" step="1" class="range" />
<p>Length [<span id="bboxHeightScale"></span>] : <span id="bboxHeightVal"></span> cm</span></p>
<input type="range" id="bboxHeight" step="1" class="range" />
</section>
<section id="objBoundingBoxRotation">
<p><i class="fa fa-compass" aria-hidden="true"></i> Rotation : <span id="bboxRotationVal"></span> °</p>
<input type="range" id="bboxRotation" step="1" class="range" min="-180" max = "180"/>
</section>
<div id="stepsCounter" style="display:none;">
<p><span id="bboxSteps">Nb steps [2-15] : <span id="bboxStepsVal">0</span></span></p>
<button class="btn btn-info" id="bboxStepsAdd"><i class="fa fa-plus" aria-hidden="true"></i></button>
<button class="btn btn-info" id="bboxStepsMinus"><i class="fa fa-minus" aria-hidden="true"></i></button>
</div>
<div id="objBoundingBoxColor">
<div class="color textEditorColor" data-type="gradientRed" style="color:#f55847;background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="color textEditorColor" data-type="gradientYellow" style="color:#e4c06e;background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="color textEditorColor" data-type="gradientGreen" style="color:#88cc6c;background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="color textEditorColor" data-type="gradientSky" style="color:#77e1f4;background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="color textEditorColor" data-type="gradientBlue" style="color:#4f72a6;background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="color textEditorColor" data-type="gradientGrey" style="color:#666666;background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="color textEditorColor" data-type="gradientWhite" style="color:#fafafa;background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="color textEditorColor" data-type="gradientOrange" style="color:#f9ad67;background:linear-gradient(30deg, #f9ad67, #f97f00);"></div>
<div class="color textEditorColor" data-type="gradientPurple" style="color:#a784d9;background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="color textEditorColor" data-type="gradientPink" style="color:#df67bd;background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="color textEditorColor" data-type="gradientBlack" style="color:#3c3b3b;background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="color textEditorColor" data-type="gradientNeutral" style="color:#e2c695;background:linear-gradient(30deg,#e2c695, #c69d56);"></div>
<div style="clear:both"></div>
</div>
<br/><br/>
<button class="btn btn-danger fully" id="bboxTrash"><i class="fa fa-2x fa-trash-o" aria-hidden="true"></i></button>
<button class="btn btn-info" style="margin-top:100px" onclick="fonc_button('select_mode');$('#boxinfo').html('Mode sélection');$('#objBoundingBox').hide(100);$('#panel').show(200);binder.graph.remove();delete binder;"><i class="fa fa-2x fa-backward" aria-hidden="true" ></i></button>
</div>
<div id="objTools" class="leftBox">
<h2>Modify door/window</h2>
<hr/>
<ul class="list-unstyled">
<br/><br/>
<li><button class="btn btn-default fully" id="objToolsHinge">REVERSE THE GONDS</button></li>
<p>Width [<span id="doorWindowWidthScale"></span>] : <span id="doorWindowWidthVal"></span> cm</span></p>
<input type="range" id="doorWindowWidth" step="1" class="range" />
<br/>
<li><button class="btn btn-danger fully objTrash"><i class="fa fa-2x fa-trash-o" aria-hidden="true"></i></button></li>
<li><button class="btn btn-info" style="margin-top:100px" onclick="fonc_button('select_mode');$('#boxinfo').html('Mode sélection');$('#objTools').hide('100');$('#panel').show('200');binder.graph.remove();delete binder;rib();"><i class="fa fa-2x fa-backward" aria-hidden="true" ></i></button></li>
</ul>
</div>
<div id="roomTools" class="leftBox">
<span style="color:#08d">Home Rough Editor</span> estimated a surface of :<br/><b><span class="size"></span></b>
<br/><br/>
<p>Nếu bạn có diện tích chính xác của căn phòng này, hãy điền vào đây:</p>
<div class="input-group">
<input type="text" class="form-control" id="roomSurface" placeholder="surface réelle" aria-describedby="basic-addon2">
<span class="input-group-addon" id="basic-addon2">m²</span>
</div>
<br/>
<input type="hidden" id="roomName" value="" />
Loại phòng :<br/>
<div class="btn-group">
<button class="btn dropdown-toggle btn-default" data-toggle="dropdown" id="roomLabel">Tên của loại phòng <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">None</a></li>
<li><a href="#">Phòng sinh hoạt chung</a></li>
<li><a href="#">Phòng ăn</a></li>
<li><a href="#">Phòng bếp</a></li>
<li><a href="#">Nhà vệ sinh</a></li>
<li><a href="#">Phòng tắm 1</a></li>
<li><a href="#">Phòng tắm 2</a></li>
<li><a href="#">Phòng tắm 3</a></li>
<li><a href="#">Phòng tắm 4</a></li>
<li><a href="#">Phòng ngủ 1</a></li>
<li><a href="#">Phòng ngủ 2</a></li>
<li><a href="#">Phòng ngủ 3</a></li>
<li><a href="#">Phòng ngủ 4</a></li>
<li><a href="#">Phòng ngủ 5</a></li>
<li><a href="#">Locker</a></li>
<li><a href="#">Phòng làm việc</a></li>
<li><a href="#">Sảnh</a></li>
<li><a href="#">Loggia</a></li>
<li><a href="#">Nhà vệ sinh</a></li>
<li class="divider"></li>
<li><a href="#">Ban công</a></li>
<li><a href="#">Terrace</a></li>
<li><a href="#">Corridor</a></li>
<li><a href="#">Garage</a></li>
<li><a href="#">clearance</a></li>
</ul>
</div>
<br/>
<br/>
Meter :
<div class="funkyradio">
<div class="funkyradio-success">
<input type="checkbox" name="roomShow" value="showSurface" id="seeArea" checked/>
<label for="seeArea">Show the surface</label>
</div>
</div>
<div class="funkyradio">
<div class="funkyradio-success">
<input type="radio" name="roomAction" id="addAction" value="add" checked />
<label for="addAction">Add the surface</label>
</div>
<div class="funkyradio-warning">
<input type="radio" name="roomAction" id="passAction" value="pass" />
<label for="passAction">Ignore the surface</label>
</div>
</div>
<hr/>
<p>Màu</p>
<div class="roomColor" data-type="gradientRed" style="background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="roomColor" data-type="gradientYellow" style="background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="roomColor" data-type="gradientGreen" style="background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="roomColor" data-type="gradientSky" style="background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="roomColor" data-type="gradientBlue" style="background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="roomColor" data-type="gradientGrey" style="background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="roomColor" data-type="gradientWhite" style="background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="roomColor" data-type="gradientOrange" style="background:linear-gradient(30deg, #f9ad67, #f97f00);"></div>
<div class="roomColor" data-type="gradientPurple" style="background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="roomColor" data-type="gradientPink" style="background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="roomColor" data-type="gradientBlack" style="background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="roomColor" data-type="gradientNeutral" style="background:linear-gradient(30deg,#e2c695, #c69d56);"></div>
<br/><br/>
<p>Vật liệu</p>
<div class="roomColor" data-type="wood" style="background: url('https://orig00.deviantart.net/e1f2/f/2015/164/8/b/old_oak_planks___seamless_texture_by_rls0812-d8x6htl.jpg');"></div>
<div class="roomColor" data-type="tiles" style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrkoI2Eiw8ya3J_swhfpZdi_ug2sONsI6TxEd1xN5af3DX9J3R');"></div>
<div class="roomColor" data-type="granite" style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9_nEMhnWVV47lxEn5T_HWxvFwkujFTuw6Ff26dRTl4rDaE8AdEQ');"></div>
<div class="roomColor" data-type="grass" style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWh5nEP_Trwo96CJjev6lnKe0_dRdA63RJFaoc3-msedgxveJd');"></div>
<div data-type="#ff008a" style="clear:both"></div>
<br/><br/>
<input type="hidden" id="roomBackground" value="gradientNeutral" />
<input type="hidden" id="roomIndex" value="" />
<button type="button" class="btn btn-primary" id="applySurface">Apply</button>
<button type="button" class="btn btn-danger" id="resetRoomTools">Cancel</button>
<br/>
</div>
<div id="panel" class="leftBox">
<ul class="list-unstyled">
<li><button class="btn disabled halfy " id="undo" title="undo"><i class="fa fa-chevron-circle-left" aria-hidden="true"></i>
<button class="btn disabled halfy pull-right" id="redo" title="redo"><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></button>
</li>
<br/>
<li><button class="btn btn-success fully " id="select_mode" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-2x fa-mouse-pointer" aria-hidden="true"></i></button></li>
<br/>
<li>
<button class="btn btn-default fully " style="margin-bottom:0px" id="line_mode" data-toggle="tooltip" data-placement="right" title="Make walls">TƯỜNG</button>
<button class="btn btn-default fully " style="margin-bottom:0px" id="partition_mode" data-toggle="tooltip" data-placement="right" title="Make partitions wall">VÁCH NGĂN</button>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-success">
<input type="checkbox" id="multi" checked/>
<label for="multi">MULTIPLE</label>
</div>
</div>
</li>
<br/>
<li><button class="btn btn-default fully " id="room_mode">Cấu hình phòng</button></li>
<br/>
<li><button class="btn btn-default fully " id="node_mode"><i class="fa fa-2x fa-scissors" aria-hidden="true"></i></button></li>
<br/>
<li><button class="btn btn-default fully " id="distance_mode" data-toggle="tooltip" data-placement="right" title="Add a measurement">MEASURE</button></li>
<li><button class="btn btn-default fully " id="text_mode" data-toggle="tooltip" data-placement="right" title="Add text">TEXT</button></li>
<br/>
<div id="door_list" class="list-unstyled sub" style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;width:150px">
<button class="btn fully door" id="aperture">Aperture</button>
<button class="btn fully door" id="simple">Cửa đi một cánh</button>
<button class="btn fully door" id="double">Cửa đi hai cánh</button>
<button class="btn fully door" id="pocket">Pocket</button>
</div>
<li><button class="btn btn-default fully " id="door_mode" onclick="$('.sub').hide();$('#door_list').toggle(200);$('#window_list').hide();">CỬA RA VÀO</button></li>
<div id="window_list" class="list-unstyled sub" style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;width:150px">
<button class="btn fully window" id="fix">Cố định</button>
<button class="btn fully window" id="flap">Cửa đơn</button>
<button class="btn fully window" id="twin">Cửa đôi</button>
<button class="btn fully window" id="bay">Cửa trượt</button>
</div>
<li><button class="btn btn-default fully " id="window_mode" onclick="$('.sub').hide();$('#window_list').toggle(200);$('#door_list').hide()">CỬA SỔ</button></li>
<li><button class="btn btn-default fully object" id="stair_mode" onclick="$('.sub').hide();$('#door_list').hide()">CẦU THANG</button></li>
<br/>
<div id="energy_list" class="list-unstyled sub" style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;bottom:40px;width:600px">
<div style="width:600px;float:left;padding:10px">
<p>Thiết bị điện</p>
<div style="float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>Các thiết bị điện chính</p>
<div style="width:120px;float:left;padding:2px">
<button class="btn fully object" id="gtl">GTL</button>
<button class="btn fully object" id="switch">Công tắc</button>
<button class="btn fully object" id="doubleSwitch">Công tắc 2 chiều</button>
<button class="btn fully object" id="dimmer">Biến áp</button>
</div>
<div style="width:120px;float:left;padding:2px">
<button class="btn fully object" id="plug">Ổ cắm</button>
<button class="btn fully object" id="plug20">Ổ cắm 20A</button>
<button class="btn fully object" id="plug32">Ổ cắm 32A</button>
<button class="btn fully object" id="roofLight">Đèn trần</button>
<button class="btn fully object" id="wallLight">Đèn tường</button>
</div>
</div>
<div style="width:130px;float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>Thiết bị ngoại vi</p>
<button class="btn fully object" id="www">Ổ cắm Internet</button>
<button class="btn fully object" id="rj45">Ổ cắm RJ45</button>
<button class="btn fully object" id="tv">Ổ cắm Anten TV</button>
</div>
<div style="width:130px;float:left;padding:10px;margin:5px;border:1px solid #ddd;border-radius:5px">
<p>Thiết bị nhiệt</p>
<button class="btn fully object" id="boiler">Máy đun nước</button>
<button class="btn fully object" id="heater">Bình nóng lạnh</button>
<button class="btn fully object" id="radiator">Lò sưởi</button>
</div>
</div>
</div>
<li><button class="btn btn-default fully " id="object_mode" onclick="$('.sub').hide();$('#energy_list').toggle(200);">THIẾT BỊ ĐIỆN</button></li>
<!-- <li><button class="btn btn-default fully " id="object_mode" onclick="$('.sub').hide();$('#object_list').toggle(200);">FURNITURE</button></li> -->
<br/>
<li><button class="btn btn-default fully " id="layer_mode" onclick="$('.sub').hide();$('#layer_list').toggle(200);">Layers</button></li>
<div id="layer_list" class="list-unstyled sub" style="box-shadow:2px 2px 3px #ccc;display:none;background:#fff;border-radius: 0 5px 5px 0; padding:10px;position:absolute;left:200px;bottom:100px;width:200px">
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showRib" checked/>
<label for="showRib">Measurement</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showArea" checked/>
<label for="showArea">Surface</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showLayerRoom" checked/>
<label for="showLayerRoom">Texture</label>
</div>
</div>
<div class="funkyradio" style="font-size:0.8em">
<div class="funkyradio-info">
<input type="checkbox" id="showLayerEnergy" checked/>
<label for="showLayerEnergy">Thiết bị điện</label>
</div>
</div>
</div>
<li><button class="btn btn-default halfy " id="report_mode" title="Show report"><i class="fa fa-calculator" aria-hidden="true"></i>
<button class="btn btn-default halfy pull-right" onclick="fullscreen();this.style.display='none';$('#nofull_mode').show();" id="full_mode" title="Full screen"><i class="fa fa-expand" aria-hidden="true"></i></button>
<button class="btn btn-default halfy pull-right" style="display:none" onclick="outFullscreen();this.style.display='none';$('#full_mode').show();" id="nofull_mode" data-toggle="tooltip" data-placement="right" title="Full screen"><i class="fa fa-compress" aria-hidden="true"></i></button>
<li>
<div style="clear:both"></div>
</ul>
</div>
<div class="modal fade col-xs-9 col-md-12" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Welcome Home Rough Editor v0.93</h4>
</div>
<div class="modal-body">
<div id="recover">
<p>Một bản thiết kế vẫn đang lưu trên máy bạn, bạn có muốn tiếp tục không?</p>
<button class="btn btn-default" onclick="initHistory('recovery');$('#myModal').modal('toggle')">CÓ</button></p>
<hr/>
<p>Hoặc bạn muốn tạo mộc bản thiết kế mới?</p>
</div>
<div class="row">
<div class="col-md-3 col-xs-3 boxMouseOver" style="min-height:140px;margin:15px;background:url('newPlanEmpty.jpg')"><img src="newPlanEmpty.jpg" class="img-responsive" onclick="initHistory();$('#myModal').modal('toggle')"/></div>
<div class="col-md-3 col-xs-3 boxMouseOver" style="min-height:140px;margin:15px;background:url('newPlanEmpty.jpg')"><img src="newPlanSquare.jpg" class="img-responsive" style="margin-top:10px" onclick="initHistory('newSquare');$('#myModal').modal('toggle')"/></div>
<div class="col-md-3 col-xs-3 boxMouseOver" style="min-height:140px;margin:15px;background:url('newPlanEmpty.jpg')"><img src="newPlanL.jpg" class="img-responsive" style="margin-top:20px" onclick="initHistory('newL');$('#myModal').modal('toggle')"/></div>
</div>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">CLOSE</button>
<button type="button" class="btn btn-primary">YES</button>
</div> -->
</div>
</div>
</div>
<div class="modal fade" id="textToLayer" tabindex="-1" role="dialog" aria-labelledby="textToLayerLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="textToLayerLabel">Text editor</h4>
</div>
<div class="modal-body">
<p>Choose police color</p>
<div class="color textEditorColor" data-type="gradientRed" style="color:#f55847;background:linear-gradient(30deg, #f55847, #f00);"></div>
<div class="color textEditorColor" data-type="gradientYellow" style="color:#e4c06e;background:linear-gradient(30deg,#e4c06e, #ffb000);"></div>
<div class="color textEditorColor" data-type="gradientGreen" style="color:#88cc6c;background:linear-gradient(30deg,#88cc6c, #60c437);"></div>
<div class="color textEditorColor" data-type="gradientSky" style="color:#77e1f4;background:linear-gradient(30deg,#77e1f4, #00d9ff);"></div>
<div class="color textEditorColor" data-type="gradientBlue" style="color:#4f72a6;background:linear-gradient(30deg,#4f72a6, #284d7e);"></div>
<div class="color textEditorColor" data-type="gradientGrey" style="color:#666666;background:linear-gradient(30deg,#666666, #aaaaaa);"></div>
<div class="color textEditorColor" data-type="gradientWhite" style="color:#fafafa;background:linear-gradient(30deg,#fafafa, #eaeaea);"></div>
<div class="color textEditorColor" data-type="gradientOrange" style="color:#f9ad67;background:linear-gradient(30deg, #f9ad67, #f97f00);"></div>
<div class="color textEditorColor" data-type="gradientPurple" style="color:#a784d9;background:linear-gradient(30deg,#a784d9, #8951da);"></div>
<div class="color textEditorColor" data-type="gradientPink" style="color:#df67bd;background:linear-gradient(30deg,#df67bd, #e22aae);"></div>
<div class="color textEditorColor" data-type="gradientBlack" style="color:#3c3b3b;background:linear-gradient(30deg,#3c3b3b, #000000);"></div>
<div class="color textEditorColor" data-type="gradientNeutral" style="color:#e2c695;background:linear-gradient(30deg,#e2c695, #c69d56);"></div>
<div style="clear:both"></div>
<hr/>
<p>Police size</p>
<input type="range" list="tickmarks" id="sizePolice" step="0.1" min="10" max="30" value="15" class="range" style="width:200px"/>
<hr/>
<p contenteditable="true" id="labelBox" onfocus="this.innerHTML='';" style="font-size:15px;padding:5px;border-radius:5px;color:#333">Your text</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" onclick="$('#textToLayer').modal('hide');">Apply</button>
</div>
</div>
</div>
</div>
<div style="position:absolute;bottom:10px;left:210px;font-size:1.5em;color:#08d" id="boxinfo">
</div>
<div id="moveBox" style="position:absolute;right:-150px;top:10px;color:#08d;background:transparent;z-index:2;text-align:center;transition-duration: 0.2s;transition-timing-function: ease-in;">
<p style="margin:0px 0 0 0;font-size:11px"><img src="https://cdn4.iconfinder.com/data/icons/mathematics-doodle-3/48/102-128.png" width=20px /> Home Rough Editor</p>
<div class="pull-right" style="margin:10px">
<p style="margin:0"><button class="btn btn-xs btn-info zoom" data-zoom="zoomtop" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-up" aria-hidden="true"></i></button></p>
<p style="margin:0">
<button class="btn btn-xs btn-info zoom" data-zoom="zoomleft" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-left" aria-hidden="true"></i></button>
<button class="btn btn-xs btn-default zoom" data-zoom="zoomreset" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-bullseye" aria-hidden="true"></i></button>
<button class="btn btn-xs btn-info zoom" data-zoom="zoomright" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-right" aria-hidden="true"></i></button>
</p>
<p style="margin:0"><button class="btn btn-xs btn-info zoom" data-zoom="zoombottom" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-arrow-down" aria-hidden="true"></i></button></p>
</div>
</div>
<div id="zoomBox" style="position:absolute;z-index:100;right:-150px;bottom:20px;text-align:center;background:transparent;padding:0px;color:#fff;transition-duration: 0.2s;transition-timing-function: ease-in;">
<div class="pull-right" style="margin-right:10px">
<button class="btn btn btn-default zoom" data-zoom="zoomin" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-plus" aria-hidden="true"></i></button>
<button class="btn btn btn-default zoom" data-zoom="zoomout" style="box-shadow:2px 2px 3px #ccc;"><i class="fa fa-minus" aria-hidden="true"></i></button>
</div>
<div style="clear:both"></div>
<div id="scaleVal" class="pull-right" style="box-shadow:2px 2px 3px #ccc;width:60px;height:20px;background:#4b79aa;border-radius:4px;margin-right:10px">
1m
</div>
<div style="clear:both"></div>
</div>
</body>
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="mousewheel.js"></script>
<script src="lang-en.js"></script>
<script src="func.js"></script>
<script src="qSVG.js"></script>
<script src="editor.js"></script>
<script src="engine.js"></script>
</html>