-
Notifications
You must be signed in to change notification settings - Fork 115
/
grasshopper2.html
145 lines (135 loc) · 5.26 KB
/
grasshopper2.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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.min.js"></script>
<script src=https://mrdoob.github.io/three.js/build/three.min.js ></script>
<script src=https://mrdoob.github.io/three.js/examples/js/controls/TrackballControls.js ></script>
<script src=https://mrdoob.github.io/three.js/examples/js/libs/stats.min.js ></script>
<script src=https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.js></script>
<script src=sun-position.js ></script>
<script src=va3c-viewer.js ></script>
<script src="ColladaLoader.js"></script>
<script src=https://mrdoob.github.io/three.js/examples/js/controls/OrbitControls.js ></script>
<style>
html, body {
height: 100%;
margin:0;
overflow:hidden;
}
.navbar-toggle {
float: right;
margin-left: 15px;
}
.navmenu {
z-index: 1;
}
.project
{
position:absolute;
left:15px;
top:-15px;
z-index:1;
}
.canvas {
position: relative;
left: 0;
z-index: 2;
min-height: 100%;
padding: 50px 0 0 0;
background: #fff;
}
@media (min-width: 0) {
.navbar-toggle {
display: block; /* force showing the toggle */
}
}
@media (min-width: 2000px) {
body {
padding: 0;
margin:0;
overflow:hidden;
}
.navbar {
right: auto;
background-color: transparent;
border: none;
}
.navbar-default {
background-color: transparent;
border-color: transparent;
}
.canvas {
padding: 0;
}
}
.styled-select {
background: transparent;
width: 90%;
padding: 5px;
padding-left: 13px;
margin-top: 5px;
color: red;
font-size: 16px;
line-height: 1;
border: 0;
border-radius: 0;
height: 34px;
-webkit-appearance: none;
}
</style>
</head>
<body>
<div class="navmenu navmenu-default navmenu-fixed-right offcanvas">
<a class="navmenu-brand" href="../index.html">va3c Viewer</a>
<ul class="nav navmenu-nav">
<li style="padding-top:25px;padding-left:13px;"><b>EXAMPLES</b></li>
<li><a onclick="loadJS('../json/revit/Project2.rvt.js')">Revit Simple</a></li>
<li><a onclick="loadJS('../json/revit/rac_basic_sample_project.rvt.js')">Revit Complex</a></li>
<li><a onclick="loadJS('../json/TypTower.json')">Grasshopper Simple</a></li>
<li><a onclick="loadJS('../json/MissSpacyEyes.json')">Grasshopper Complex</a></li>
<li><a onclick="loadJS('../json/3dsmax/TransamericaPyramid2.js')">3DS Max</a></li>
<li><a onclick="loadDAE('../json/US_Capitol_Building.dae')">Sketchup</a></li>
<li style="padding-top:25px;padding-left:13px;"><b>CITY</b></li>
<li>
<select class="styled-select" onchange="getComboA(this);">
<option value="New York">New York</option>
<option value="Sao Paulo">Sao Paulo</option>
<option value="Paris">Paris</option>
<option value="Tokyo">Tokyo</option>
<option value="Moscow">Moscow</option>
</select>
</li>
<li style="padding-top:25px;padding-left:13px;"><b>TIME</b></li>
<div style="padding-left:13px;padding-right:13px;">
<li style="padding-top:7px;">Month 1-12<input type="range" name="points" id="month" min="1" max="12" step="1" value="5" onchange="updateLight()"></li>
<li style="padding-top:7px;">Day 1-31<input type="range" name="points" id="day" min="1" max="31" step="1" value="18" onchange="updateLight()"></li>
<li style="padding-top:7px;">Hour 0-24<input type="range" name="points" id="hour" min="1" max="24" step="1" value="24" onchange="updateLight()"></li>
</div>
<li style="padding-top:25px;padding-left:13px;"><b>CAMERA</b></li>
<li><a onclick="resetCamera()">Reset View</a></li>
<li><a onclick="zoomExtents()">Zoom Extents</a></li>
</ul>
</div>
<div>
<script>
var fname = '../json/TTX.json';
init(fname);
animate();
</script>
</div>
<div class="canvas">
<div style="background-color: transparent;border-color: transparent;" class="navbar navbar-default navbar-fixed-top">
<h1 class="project"><b>va3c viewer</b></h1>
<button style="background-color: rgb(240,240,240);" type="button" class="navbar-toggle expand" data-toggle="offcanvas" data-target=".navmenu" data-canvas="body">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
</div>
</body>
</html>