-
Notifications
You must be signed in to change notification settings - Fork 336
/
Copy pathindex.html
72 lines (65 loc) · 2.72 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:;base64,=">
<title>RhinoCompute: GH SubD Object</title>
<style>
body { margin: 0; font-family: Arial, Helvetica, sans-serif; }
input {width: 90%;}
#container {position: relative;}
#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="overlay">
<div>
<input type="range" id="count" name="count" min="1" max="100" value="65" step="1">
<label for="count">Count</label>
</div>
<div>
<input type="range" id="radius" name="radius" min="1" max="10.00" value="3.00" step="0.1">
<label for="radius">Radius</label>
</div>
<div>
<input type="range" id="length" name="length" min="0" max="10.00" value="8.00" step="0.1">
<label for="length">Length</label>
</div>
</div>
</div>
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/examples/jsm/controls/OrbitControls": "https://unpkg.com/[email protected]/examples/jsm/controls/OrbitControls.js",
"three/examples/jsm/loaders/3DMLoader": "https://unpkg.com/[email protected]/examples/jsm/loaders/3DMLoader.js",
"rhino3dm":"https://unpkg.com/[email protected]/rhino3dm.module.js",
"rhinocompute": "https://www.unpkg.com/[email protected]/compute.rhino3d.module.js"
}
}
</script>
<script type="module" src="script.js"></script>
</body>
</html>