-
Notifications
You must be signed in to change notification settings - Fork 32
/
demo_routes.html
92 lines (77 loc) · 2.04 KB
/
demo_routes.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>Milky Way</title>
<link href="http://fonts.googleapis.com/css?family=Orbitron:400" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<style type="text/css">
#systemDetails,
#hud {
width:450px;
}
h1 {
position: fixed;
top: 2%;
left: 0;
width: 100%;
font-size: 1.3rem;
text-align: center;
color: #ccc;
font-family: "Orbitron";
}
h1 a {
color: inherit;
}
#edmap {
position: fixed;
top: 10%;
right: 0;
width: 100%;
height: 80%;
}
#debug {
position: fixed;
bottom: 5%;
right: 0;
width: 100%;
text-align: center;
color: #aaa;
font-family: "Helvetica";
font-size: 0.8rem;
}
</style>
</head>
<body>
<h1>Milky Way</h1>
<div id="edmap"></div>
<div id="debug"></div>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<!-- Three.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r75/three.min.js"></script>
<!-- Launch ED3Dmap -->
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script src="js/ed3dmap.min.js?v=5"></script>
<script type="text/javascript">
var d = new Date()
d.setDate(d.getDate() - 1);
var queryDate = d.getFullYear()+'-'+(d.getMonth()+1)+'-'+d.getDate()+' '+d.getHours()+':00:00';
Ed3d.init({
container : 'edmap',
// jsonPath : "http://www.edsm.net/api-v1/systems?coords=1&known=1&startdatetime="+queryDate,
jsonPath : "json_samples/routes.json",
withHudPanel : true,
hudMultipleSelect : false,
effectScaleSystem : [50,10000],
startAnim: true,
showGalaxyInfos: true,
systemColor: '#FF9D00',
playerPos: [25,-2100,-3900],
cameraPos: [25,9100,-7900],
});
</script>
</body>
</html>