-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
67 lines (64 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="/static/logo.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>IFC THREE VIEWER</title>
</head>
<body>
<header id="toolbox">
<label for="file-input" class="custom-file-upload custom-button">
<span class="custom-icon material-icons">upload</span>
<span class="tooltiptext">Use Your Model</span>
</label>
<input type="file" id="file-input" accept=".ifc, .ifcXML, .ifcZIP">
<label id="measuring-button" class="custom-button" title="Measuring">
<span class="custom-icon material-icons">straighten</span>
</label>
<label id="picking-button" class="custom-button" title="Selection">
<span class="custom-icon material-icons">info</span>
</label>
<label id="annotating-button" class="custom-button" title="Annotation">
<span class="custom-icon material-icons">comment</span>
</label>
<label id="help-button" class="custom-button" title="Help">
<span class="custom-icon material-icons">help</span>
</label>
</header>
<canvas id="three-canvas"></canvas>
<div id="model-info"></div>
<div id="help-panel">
<img src="static/mouse-left.png" width="40" alt="" class="help-image">
<span class="help-label">Left Click + Move => <b>Rotate</b></span>
<img src="static/mouse-left.png" width="40" alt="" class="help-image" style="transform: scale(-1,1);">
<span class="help-label">Right Click + Move => <b>Pan</b></span>
<img src="static/mouse-wheel.png" width="40" alt="" class="help-image">
<span class="help-label">Scroll => <b>Zoom</b></span>
</div>
<div id="annotation-hint" class="custom-hint">
<span class="material-icons"
style="color: #242424; background-color: white; margin-right: 6px; float: left;">comment</span>
Click a part of the model to tag it
</div>
<div id="measuring-hint" class="custom-hint">
<span class="material-icons"
style="color: #242424; background-color: white; margin-right: 6px; float: left;">straighten</span>
Click on the model to start measuring
</div>
<div id="annotation-display">Tag Data</div>
<div id="annotation-form">
<textarea name="comment" placeholder="Description..." id="annotation-comment" cols="20" rows="5"></textarea>
<button id="cancel-annotation-button">
<span class="material-icons" style="color: white; margin-right: 6px; float: left;">cancel</span> CANCEL
</button>
<button id="save-annotation-button">
<span class="material-icons" style="color: white;
background-color: #F7C702; margin-right: 6px; float: left;">save</span> ADD TAG
</button>
</div>
<script src="bundle.js"></script>
</body>
</html>