forked from xeokit/xeokit-bim-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (124 loc) · 3.78 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Minimal BIM Viewer built on xeokit SDK and Bootstrap</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"/>
<link rel="stylesheet" href="lib/fontawesome-free-5.11.2-web/css/all.min.css" type="text/css"/>
<link rel="stylesheet" href="lib/inspire-tree/site-min.css" type="text/css"/>
<link rel="stylesheet" href="css/style.css" type="text/css"/>
<script src="lib/jquery-3.3.1.slim.min.js"></script>
<script src="lib/popper.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/lodash.js"></script>
<script src="lib/inspire-tree/inspire-tree.min.js"></script>
<script src="lib/inspire-tree/inspire-tree-dom-min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<style>
html, body {
height: 100%;
}
body {
margin: 0;
}
#myWrapper {
display: flex;
width: 100%;
height: 100%;
align-items: stretch;
z-index: 10000;
}
#myExplorer {
min-width: 400px;
max-width: 400px;
height: 100%;
margin-left: -400px;
background: #7386D5;
color: #fff;
transition: all 0.3s;
padding: 0;
}
#myExplorer.active {
margin-left: 0;
}
#myExplorer .explorer-toolbar{
padding: 0;
background: #6d7fcc;
}
#myExplorer ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#myExplorer ul p {
color: #fff;
padding: 10px;
}
#myExplorer ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
}
#myExplorer ul li a:hover {
color: #7386D5;
background: #fff;
}
#myExplorer ul li.active > a, a[aria-expanded="true"] {
color: #fff;
background: #6d7fcc;
}
#myContent {
width: 100%;
height: 100%;
background: #ebebeb;
}
#myToolbar {
position:fixed;
width:100%;
align-items: center;
justify-content: center;
padding: 10px;
height: 60px;
}
#myCanvas {
width: 100%;
height: 100%;
padding-top:60px;
background: #ebebeb;
cursor: default;
pointer-events: all;
margin: 0;
}
#myNavCubeCanvas {
position: absolute;
width: 200px;
height: 200px;
bottom: 00px;
left: 400px;
z-index: 200000;
}
#mySectionPlanesOverviewCanvas {
position: absolute;
width: 250px;
height: 250px;
top: 300px;
right: 50px;
z-index: 200000;
}
</style>
</head>
<body>
<a class="github-fork-ribbon" href="https://github.com/xeokit/xeokit-viewer" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<div id="myWrapper">
<nav id="myExplorer" class="active"></nav>
<div id="myContent">
<div id="myToolbar"></div>
<canvas id="myCanvas"></canvas>
</div>
</div>
<canvas id="myNavCubeCanvas"></canvas>
<canvas id="mySectionPlanesOverviewCanvas"></canvas>
</body>
<script src="dist/main.js" type="module" defer></script>
</html>