-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.html
executable file
·190 lines (170 loc) · 8.94 KB
/
test1.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Hello World!</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="popupwindow.js"></script>
<script src="functions.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="../Build/Cesium/Cesium.js"></script>
<style>
@import url(../Build/Cesium/Widgets/widgets.css);
@import url("program.css");
@import url(https://fonts.googleapis.com/css?family=Roboto);
html, body, #cesiumContainer {
width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
</style>
</head>
<body>
<!-- windows -->
<div id="errorwindow" style="display:none;">
</div>
<div id="logwindow" style="display:none;" >
<div style="width:100%; height:100%;">
<div style="display: block; margin:auto; height: 100%; width:100%;"><textarea id="logtextarea" style="height: 100%; width:100%; resize:none; min-height:150px; min-width:350px;" readonly></textarea>
<button style="left: 50%; position: relative; -ms-transform: translate(-50%); transform: translate(-50%);">OK</button>
</div>
</div>
</div>
<div id="cesiumContainer"></div>
<div class="toolbar-left">
</div>
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
</script>
<div id="divUpperLeft" style="position:absolute; background:rgba(0,0,0,0); left:10px; top:5px; z-index:2000;">
<div id="projectdropdown" class="dropdown dropdown-bubble" style="display:inline;"style="display:inline;">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height:32px;">
<span class="projecticon"></span>
<span style="display:inline-block; height: 32px; vertical-align: middle;">Project</span>
</button>
<ul id="projectdropdownmenu" class="dropdown-menu" style="margin-top: 10px;">
<li><a href="" style="text-align:center;">Open project</a></li>
<li><a href="" style="text-align:center;">Save project</a></li>
</ul>
</div>
<div id="satellitesdropdown" class="dropdown dropdown-bubble" style="display:inline;">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height:32px;">
<span class="satellitesicon"></span>
<span style="display:inline-block; height: 32px; vertical-align: middle;">Satellites</span>
</button>
<ul id="satellitesdropdownmenu" class="dropdown-menu" style="margin-top: 10px;">
<li><a href="" style="text-align:center;">Manage satellites</a></li>
<li><a href="" style="text-align:center;">Add satellite</a></li>
</ul>
</div>
<div id="antennasdropdown" class="dropdown dropdown-bubble" style="display:inline;">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height:32px;">
<span class="antennasicon"></span>
<span style="display:inline-block; height: 32px; vertical-align: middle;">Antennas</span>
</button>
<ul id="antennasdropdownmenu" class="dropdown-menu" style="margin-top: 10px;">
<li><a href="" style="text-align:center;">Add dish</a></li>
<li><a href="" style="text-align:center;">Manage dishes</a></li>
</ul>
</div>
<div id="communicationsdropdown" class="dropdown dropdown-bubble" style="display:inline;">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height:32px;">
<span class="communicationsicon"></span>
<span style="display:inline-block; height: 32px; vertical-align: middle;">Communications</span>
</button>
<ul id="communicationsdropdownmenu" class="dropdown-menu" style="margin-top: 10px;">
<li><a href="" style="text-align:center;">db fix</a></li>
<li><a href="" style="text-align:center;">test1</a></li>
</ul>
</div>
<div id="settingsdropdown" class="dropdown dropdown-bubble" style="display:inline;">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="width:32px; height:32px;">
<span class="settingsicon"></span>
</button>
<ul id="settingsdropdownmenu" class="dropdown-menu" style="margin-top: 10px; min-width: 250px;">
<span style="text-align:center; font-weight:bold; width: 100%; display: block; font-size:18px; ">Settings:</span>
<p></p><div><span style="font-weight: bold; width: 100%; margin-left:7px">Unit Settings: </span></div>
<div><span style="font-weight: normal; width: 100%; margin-left:10px">Temperature: </span>
<div style="display:inline-block;">°C</div>
<div style="display:inline-block; min-width:40px; text-align:left;">
<label class="switch">
<input type="checkbox" id="tempunitswitch" onclick="toggletempunitonclick();">
<span class="slider round"></span>
</label>
</div>
<div style="display:inline-block;">°F</div></div>
<div><span style="font-weight: normal; width: 100%; margin-left:10px">Distance: </span>
<div style="display:inline-block;">km</div>
<div style="display:inline-block; min-width:40px; text-align:left;">
<label class="switch">
<input type="checkbox" id="lengthunitswitch" onclick="toggleeciunitonclick();">
<span class="slider round"></span>
</label>
</div>
<div style="display:inline-block;">mi</div></div>
<div><span style="font-weight: normal; width: 100%; margin-left:10px">Earth system: </span>
<div style="display:inline-block;">J2000</div>
<div style="display:inline-block; min-width:40px; text-align:left;">
<label class="switch">
<input type="checkbox" id="eciunitswitch" onclick="toggleeciunitonclick();">
<span class="slider round"></span>
</label>
</div>
<div style="display:inline-block; ">TEME</div></div>
<p></p>
<div><span style="font-weight: bold; width: 100%; margin-left:7px">Viewer Settings: </span></div>
<div><span style="font-weight: normal; width: 100%; margin-left:10px">Show axis: </span>
<div style="font-weight: normal; width: 100%; max-width:250px; max-height:20px; margin-left:-32px;" >
<span>Show x:</span>
<div class="md-checkbox" style="display:inline; margin-right: 1.5em;">
<input id="xaxischeckbox" type="checkbox" onclick="togglexaxisonclick();">
<label for="xaxischeckbox"></label>
</div>
<span> Show y:</span>
<div class="md-checkbox" style="display:inline; margin-right:1.5em;">
<input id="yaxischeckbox" type="checkbox" onclick="toggleyaxisonclick();">
<label for="yaxischeckbox"></label>
</div>
<span> Show z:</span>
<div class="md-checkbox" style="display:inline; margin-left:0.2em">
<input id="zaxischeckbox" type="checkbox" onclick="togglezaxisonclick();">
<label for="zaxischeckbox"></label>
</div>
</div></div>
<p></p>
<div><span style="font-weight: bold; width: 100%; margin-left:7px">UI Settings: </span></div>
<div style="font-weight: normal; width: 100%; margin-left: -5px;">
<span>Dark mode: </span>
<div class="md-checkbox" style="display:inline; margin-left:0.2em">
<input type="checkbox" id="darkmodeswitch" onclick="toggledarkmodeonclick();">
<label for="darkmodeswitch"></label>
</div></div>
<p></p>
<div><span style="font-weight: bold; width: 100%; margin-left:7px">Miselaneous: </span></div>
<li><a style="text-align:center;" onclick="showlogwindow();">Show log</a></li>
</ul>
</div>
<script>
$('ul.dropdown-menu').on('click', function(event){
// The event won't be propagated up to the document NODE and
// therefore delegated events won't be fired
event.stopPropagation();
});
</script>
<script>
initializesettings();
loadsettings();
</script>
</div>
</body>
</html>