/
index.html
163 lines (131 loc) · 4.02 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!doctype html>
<html lang="en">
<head>
<title>WebGL Globe</title>
<meta charset="utf-8">
<style type="text/css">
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
background: #000000 url(loading.gif) center center no-repeat;
color: #ffffff;
font-family: sans-serif;
font-size: 13px;
line-height: 20px;
height: 100%;
}
#info {
font-size: 11px;
position: absolute;
bottom: 5px;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 3px;
right: 10px;
padding: 10px;
}
a {
color: #aaa;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.bull {
padding: 0px 5px;
color: #555;
}
#title {
position: absolute;
top: 20px;
width: 320px;
left: 20px;
background-color: rgba(0, 0, 0, 0.2);
font: 20px/20px Georgia;
padding: 15px;
}
#currentInfo {
width: 270px;
position: absolute;
left: 20px;
top: 63px;
background-color: rgba(0,0,0,0.2);
border-top: 1px solid rgba(255,255,255,0.4);
padding: 10px;
}
.year {
font: 16px Georgia;
line-height: 26px;
height: 30px;
text-align: center;
float: left;
width: 90px;
color: rgba(255, 255, 255, 0.4);
cursor: pointer;
-webkit-transition: all 0.1s ease-out;
}
.year:hover, .year.active {
font-size: 23px;
color: #fff;
}
#ce span {
display: none;
}
span.green {
color: #34cb57;
}
span.gray {
color: #666666;
}
span.red {
color: #db0b00;
}
</style>
</head>
<body>
<div id="container"></div>
<div id="info">
The <a href="http://www.chromeexperiments.com/globe">WebGL Globe</a> is an
open platform for visualizing geographic data. <span
class="bull">•</span> <a href="https://github.com/dataarts/webgl-globe">Get
the code</a> <span class="bull">•</span> By the Google Data Arts Team</a>
</div>
<div id="title">
Orbital Objects
</div>
<div id="currentInfo">Points marked in <span class="green">green</span> represent active satellites. Points marked in <span class="gray">gray</span> are inactive satellites that are still intact. Points marked as <span class="red">red</span> are tracked pieces of space debris.<br /><br />Up and down arrows zoom in and out. Use the mouse to rotate.<br /><br />Source data provided by <a href="http://www.agi.com/">Analytical Graphics, Inc.</a>, obtained November 29th, 2013.<br/><br/>Read <a href="http://www.alexras.info/blog/2013/11/30/visualizing-satellites-and-space-debris.html">this blog post</a> for more information on how this visualization was built.</div>
<script type="text/javascript" src="third-party/Detector.js"></script>
<script type="text/javascript" src="third-party/three.min.js"></script>
<script type="text/javascript" src="globe.js"></script>
<script type="text/javascript">
var globe = DAT.Globe(document.getElementById('container'), function(label) {
return new THREE.Color([0x34cb57, 0x666666, 0xdb0b00][label]);
});
xhr = new XMLHttpRequest();
xhr.open('GET', 'space_junk.json', true);
xhr.onreadystatechange = function(e) {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
var data = JSON.parse(xhr.responseText);
window.data = data;
globe.addData(data, {format: 'legend'});
globe.createPoints();
globe.animate();
document.body.style.backgroundImage = 'none'; // remove loading
}
}
};
xhr.send(null);
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-249775-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>