-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdemo_no_jsonfile.html
91 lines (77 loc) · 1.7 KB
/
demo_no_jsonfile.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
<!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>NO JSon file test</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: 15%;
right: 0;
width: 100%;
height: 70%;
}
</style>
</head>
<body>
<h1>NO JSon file test</h1>
<div id="edmap"></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>
<!-- JSon inside a container -->
<div id="json_data">
[
{
"name": "Sol",
"coords": {
"x": 0,
"y": 0,
"z": 0
}
},
{
"name": "Solati",
"coords": {
"x": 66.53125,
"y": 29.1875,
"z": 34.6875
}
}
]
</div>
<!-- Launch ED3Dmap -->
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script src="js/ed3dmap.min.js?v=4"></script>
<script type="text/javascript">
Ed3d.init({
container : 'edmap',
jsonContainer : 'json_data',
withHudPanel : false,
effectScaleSystem : [128,1500]
});
</script>
</body>
</html>