-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathseasons1-3.html
281 lines (270 loc) · 11.4 KB
/
seasons1-3.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Investigate: Tilt and Temperature Patterns</title>
<link href="../stylesheets/style.css" rel="stylesheet" type="text/css"/>
<link href="../stylesheets/video-js.css" rel="stylesheet" type="text/css"/>
<link href="../stylesheets/flotr.css" rel="stylesheet" type="text/css" />
<link href="../stylesheets/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../lib/modernizr-1.6.js"></script>
<script type="text/javascript" src="../lib/flotr/lib/prototype.js"></script>
<script type="text/javascript" src="../lib/table/fastinit.js"></script>
<script type="text/javascript" src="../lib/table/tablesort.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../lib/flotr/lib/excanvas.js"></script>
<script type="text/javascript" src="../lib/flotr/lib/base64.js"></script>
<![endif]-->
<script type="text/javascript" src="../lib/flotr/lib/canvas2image.js"></script>
<script type="text/javascript" src="../lib/flotr/lib/canvastext.js"></script>
<script type="text/javascript" src="../lib/flotr/flotr.debug-0.2.0-test.js"></script>
<script type="text/javascript" src="../lib/glmatrix.js"></script>
</head>
<div id="container">
<div id="header-inner">
<h1 id="title">Investigate: Tilt and Temperature Patterns</h1>
<div id="simulation-controls"></div>
</div>
<div id="content">
<div id="webglCanvasContainer">
<ul class="hlist">
<li>
<div class="glCanvasQuarterFrame">
<h3 class="label">View: Earth from Spaceship</h3>
<canvas id="theCanvas3">
</canvas>
</div>
</li>
<li>
<div class="glCanvasQuarterFrame">
<h3 class="label">View: Sun-Earth System</h3>
<canvas id="theCanvas1">
</canvas>
<div class="underCanvasUI">
</div>
</div>
</li>
</ul>
<ul class="hlist">
<li>
<div class="underCanvasUI">
<ul class="hlist">
<li style="display:none;">
<form id="choose-view">
<fieldset>
<legend>Select view: </legend>
<label><input type="radio" name="view" value="top"> Top</input></label>
<label><input type="radio" name="view" value="side" checked> Side</input></label>
</fieldset>
</form>
</li>
<li>
<form id="show-me">
<fieldset>
<legend>Show me: </legend>
<label style="display:none;"><input id="orbital-grid" type="checkbox" checked/> Grid: </label>
<label><input id="earth-rotation" type="checkbox"/> Rotation</label>
</fieldset>
</form>
</li>
</ul>
<div id="results">
<p>
<form>
<label for="choose-month">Choose month:</label>
<select id="choose-month" name="chosen-month">
<option value="jan">January</option>
<option value="feb">February</option>
<option value="mar">March</option>
<option value="apr">April</option>
<option value="may">May</option>
<option value="jun" selected>June</option>
<option value="jul">July</option>
<option value="aug">August</option>
<option value="sep">September</option>
<option value="oct">October</option>
<option value="nov">November</option>
<option value="dec">December</option>
</select>
</form>
</p>
<p>
<form id="select-city-latitude">
<label for="selected-city-latitude">Choose city:</label>
<select id="selected-city-latitude" name="selected-city-latitude">
<option disabled selected>city ...</option>
</select>
</form>
</p>
<p>
<form id="choose-tilt">
<label for="choose-tilt">Choose tilt of Earth</label>
<label><input type="radio" name="tilt" value="yes" checked> Yes</input></label>
<label><input type="radio" name="tilt" value="no"> No</input></label>
</form>
</p>
<p>
<form id="city-latitude-temperature">
<label id="city-latitude-temperature-label" for="city-latitude-temperature-prediction">Predict average temperature °F</label>
<input type="text" id="city-latitude-temperature-prediction" name="city-latitude-temperature-prediction" />
<input type="submit" value="Collect Data" />
</form>
</p>
<p><span class="tip">TIP #1:</span> You can sort the data in the table by clicking on the column name.</p>
</div>
<div class="tableFrame">
<table id='city-data-table' class='sortable'>
<thead>
<tr>
<th class='sortfirstdesc number'></th>
<th class='text'>City</th>
<th class='text'>Month</th>
<th class='text'>Tilt</th>
<th class='number'>Temp</th>
<th class='number'>Prediction</th>
<th class="nosort">Graph</th>
</thead>
<tbody id="city-data-table-body">
</tbody>
</table>
</div>
</div>
</li>
<li>
<ul class="hlist">
<li>
<!-- <form id="show-graph">
<fieldset>
<legend>Show graph: </legend>
<label><input id="solar-radiation-graph" type="checkbox"/> Solar Radiation</label>
<label><input id="sun-earth-distance-graph" type="checkbox"/> Distance from Sun</label>
</fieldset>
</form> -->
</li>
</ul>
<div class="quarterFrame">
<div class="glGraphQuarterFrame" id="theCanvas4"></div>
<div id="city-color-keys">
<ul id="color-key-list" />
</div>
</div>
</li>
</ul>
</div>
<div id="snapshots">
<ul>
<li>
<ul class="hlist">
<li>
<img id="s1-small"></img>
</li>
<li>
<img id="s1-full"></img>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="earth-info-label1" class="earth-info-label transparent-ui"></div>
<div id="earth-info-label3" class="earth-info-label transparent-ui"></div>
<script type="text/javascript">
function myRequire(src, callback){
if (src.constructor == Array) {
var libraries = src;
} else {
var libraries = [src];
}
var script = document.createElement("script")
script.type = "text/javascript";
// IE
script.onreadystatechange = function () {
if (script.readyState === 'loaded' || script.readyState == 'complete') {
script.onreadystatechange = null;
libraries.shift();
if (libraries.length > 0) {
myRequire(libraries)
}
if (callback) {
callback();
}
}
}
// Not IE
script.onload = function () {
libraries.shift();
if (libraries.length > 0) {
myRequire(libraries)
}
if (callback) {
callback();
}
}
script.src = libraries[0];
document.getElementsByTagName("head")[0].appendChild(script);
};
window.onload=function() {
LITE_VERSION = false;
CONSTRAIN_NAVIGATION = true;
var webGLEnabled = Modernizr.webgl;
if (webGLEnabled){
myRequire([
"../lib/sprintf.js",
"../lib/scenejs-0.8.0/scenejs.js",
"javascript/solar-system-data.js",
"javascript/earth-axis.js",
"javascript/sun.js",
"javascript/earth.js",
"javascript/earth-orbit.js",
"javascript/jpl-earth-ephemerides.js",
"javascript/orbit-grid.js",
"javascript/seasons.js",
"javascript/cities.js",
"javascript/latitude-line.js",
"javascript/earth-surface-location-indicator.js",
"javascript/spaceship.js",
"javascript/seasons1-3.js"
]);
} else {
var content = document.getElementById('content');
var canvasContainer = document.getElementById('webglCanvasContainer');
var controls = document.getElementById('simulation-controls');
controls.style['display']='none';
var header = document.getElementById('header-inner');
var getting_webgl = document.getElementById('getting-webgl').cloneNode(true);
header.appendChild(getting_webgl);
var notice = document.createElement('p');
notice.innerHTML = "<em>Play a video of the Earth visualization with an <a href=\"http://videojs.com\">HTML5 Video Player</a> because this browser doesn't support WebGL.</em>";
notice.className = "videoplayernotice";
content.insertBefore(notice, canvasContainer);
myRequire("../lib/videojs/video.js", function () {
var currentPath = location.href.replace(/index\.html$/, '');
var earthVideoStr="";
earthVideoStr += "<div class=\"video-js-box\">";
earthVideoStr += "<video id=\"earth-video\" class=\"video-js\" width=\"1030\" height=\"700\" controls=\"controls\" ";
earthVideoStr += "preload=\"auto\" poster=\"images\/earth-frame1-mixed.jpg\">";
earthVideoStr += "<source src=\"videos\/earth3.mp4\" type='video\/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"' \/>";
earthVideoStr += "<source src=\"videos\/earth3.webm\" type='video\/webm; codecs=\"vp8, vorbis\"' \/>";
earthVideoStr += "<source src=\"videos\/earth3.ogv\" type='video\/ogg; codecs=\"theora, vorbis\"' \/>";
earthVideoStr += "<object id=\"flash_fallback_1\" class=\"vjs-flash-fallback\" width=\"1030\" height=\"700\" type=\"application\/x-shockwave-flash\"";
earthVideoStr += "data=\"http:\/\/releases.flowplayer.org\/swf\/flowplayer-3.2.1.swf\">";
earthVideoStr += "<param name=\"movie\" value=\"http:\/\/releases.flowplayer.org\/swf\/flowplayer-3.2.1.swf\" \/>";
earthVideoStr += "<param name=\"allowfullscreen\" value=\"true\" \/>";
earthVideoStr += "<param name=\"flashvars\" value='config={\"playlist\":[\"" + currentPath + "/images/earth-frame1-mixed.jpg\", "
earthVideoStr += "{\"url\": \"" + currentPath + "videos\/earth3.flv\",\"autoPlay\":false,\"loop\":false,\"autoBuffering\":true}]}' \/>";
earthVideoStr += "<img src=\"" + currentPath + "images/earth-frame1-mixed.jpg\" width=\"1030\" height=\"700\" alt=\"Poster Image\"";
earthVideoStr += "title=\"No video playback capabilities.\" \/>";
earthVideoStr += "<\/object>";
earthVideoStr += "<\/video>";
earthVideoStr += "<p class=\"vjs-no-video\"><\/p>";
earthVideoStr += "<\/div>";
earthVideoStr += "";
canvasContainer.innerHTML = earthVideoStr;
VideoJS.setupAllWhenReady();
});
};
}
</script>
</body>
</html>