-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
74 lines (63 loc) · 1.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<style>
html,
body {
height: 100%;
padding: 0;
margin: 0;
}
canvas {
width: 100%;
height: 100%;
display: block;
border: none;
}
#progress {
position: absolute;
left: 0;
top: 0;
}
#viewer-container {
flex: 6;
width: 100%;
overflow: hidden;
}
.flex-container {
display: flex;
flex-direction: column;
height: 100%;
}
#blue {
background: blue;
width: 100%;
flex: 0;
}
</style>
<script src="viewer.js" />
</head>
<body style="background: white;">
<h1>Hello World!</h1>
<p>
We are using node <script>document.write(process.versions.node)</script>,
Chrome <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.
</p>
<div class="flex-container">
<div id="viewer-container">
<canvas id="viewer"></canvas>
</div>
<div id="blue">
</div>
</div>
<div id="progress">
</div>
<script>
loadViewer("viewer", "https://docs.xbim.net/data/SampleHouse.wexbim");
</script>
</body>
</html>