-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (48 loc) · 1.53 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
<!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>WebGL solar system explorer</title>
<link rel="stylesheet" href="css/main.css" />
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</head>
<body>
<div id="main-canvas">
<div id="interface">
</div>
</div>
<script src="js/vendor/jquery-2.0.3.min.js"></script>
<script src="js/vendor/three.js"></script>
<script src="js/vendor/OrbitControls.js"></script>
<script src="js/vendor/stats.min.js"></script>
<script src="js/vendor/THREEx.WindowResize.js"></script>
<script src="js/vendor/tween.min.js"></script>
<script src="js/gl.js"></script>
<script>
// load planet data
// reference: http://stackoverflow.com/questions/2765411/is-it-possible-to-set-asyncfalse-to-getjson-call
var planetData;
$.ajax({
url: "json/planetData.json",
dataType: "json",
async: false,
success: function(data) {
planetData = data;
console.log("planetary data loaded");
// load Google charts lib
// google.load("visualization", "1", {packages:["corechart", "geochart"]});
// google.setOnLoadCallback(function() {
// initUI();
// initGL();
// });
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("error loading json: " + errorThrown);
}
});
initGL();
</script>
</body>
</html>