forked from deathbearbrown/learning-three-js-blogpost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (64 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>The Chart</title>
<style>
body {
background-color: #ffffff;
margin: 0;
overflow: hidden;
}
.label {
width:100px;
height:20px;
text-align: center;
}
a {
color: #000000;
}
.buttons{
border: 1px solid;
display: inline-block;
margin-right:5px;
cursor: pointer;
padding: 5px 10px;
background-color:#fff;
}
#top {
position: absolute;
top:0;
left:0;
z-index: 10000000;
padding:10px;
}
#container {
cursor:pointer;
z-index: 0;
width: 100%;
height: 100%;
min-height:400px;
min-width: 400px;
}
canvas{
z-index: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<div id="top">
<div class="buttons" id="camera-1">Top</div>
<div class="buttons" id="camera-2">Side</div>
<div class="buttons" id="camera-3">default</div>
Click & drag the graph around.
</div>
<script src="./bower_components/jquery/dist/jquery.min.js"></script>
<script src="./bower_components/three.js/three.js"></script>
<script src="./js/vendor/OrbitControls.js"></script>
<script src="./js/vendor/CSS3DRenderer.js"></script>
<script src="./js/vendor/Detector.js"></script>
<script src="./js/vendor/Stats.js"></script>
<script src="./js/main.js"></script>
</body>
</html>