-
Notifications
You must be signed in to change notification settings - Fork 333
/
index.html
47 lines (45 loc) · 1.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Rhino.Inside Electron</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100%; }
input {width: 90%;}
#container {position: relative;}
#container canvas, #overlay { position: absolute;}
#overlay {z-index: 1; width: 100%}
#loader {
border: 5px solid #f3f3f3; /* Light grey */
border-top: 5px solid #3d3d3d; /* Grey */
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div id="loader"></div>
<div id="container">
<div id="canvas"></div>
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/rhino3dm.min.js"></script>
<script>
require('./app.js')
</script>
</body>
</html>