-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathseasons1-1.html
219 lines (208 loc) · 9.06 KB
/
seasons1-1.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Investigate: Sun-Earth Distance and Shape of Earth's Orbit</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>
<script type="text/javascript" src="../lib/table/sort-by-month.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: Sun-Earth Distance and Shape of Earth's Orbit</h1>
<div id="simulation-controls"> </div>
</div>
<div id="content">
<div id="webglCanvasContainer">
<div class="glCanvasFullFrame">
<canvas id="theCanvas"></canvas>
</div>
<ul class="hlist">
<li>
<div class="underCanvasUI">
<ul class="hlist">
<li>
<form id="choose-view">
<fieldset>
<legend>Select view: </legend>
<label><input type="radio" name="view" value="top" checked> Top</input></label>
<label><input type="radio" name="view" value="side"> Side</input></label>
</fieldset>
</form>
</li>
<li>
<form id="show-me">
<fieldset>
<legend>Show me: </legend>
<label><input id="circle-orbit" type="checkbox"/> Circular orbit</label>
<label style="display:none;"><input id="orbital-grid" type="checkbox" checked/> Orbital grid: </label>
</fieldset>
</form>
</li>
</ul>
<div id="results">
<ul class="hlist">
<li>
<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>
</li>
<li>
<form id="month-distance" >
<input type="submit" value="Collect Data" />
</form>
</li>
</ul>
<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='month-data-table' class='sortable'>
<thead>
<tr>
<th class='sortfirstdesc number'></th>
<th class='month'>Month</th>
<th class='number'>Distance from Sun (in millions of km)</th>
</thead>
<tbody id="month-data-table-body">
</tbody>
</table>
</div>
</div>
</li>
<li>
<div class="quarterFrame">
<div class="glGraphQuarterFrame" id="theCanvas4"></div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div id="earth-info-label"></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;
NO_YAW_NAVIGATION = true;
var webGLEnabled = Modernizr.webgl;
// webGLEnabled = false;
if (webGLEnabled){
myRequire([
"../lib/sprintf.js",
"../lib/scenejs-0.8.0/scenejs.js",
"javascript/solar-system-data.js",
"javascript/sky-sphere.js",
"javascript/earth-axis.js",
"javascript/earth-sphere.js",
"javascript/sun.js",
"javascript/earth.js",
"javascript/earth-orbit.js",
"javascript/earth-sun-line.js",
"javascript/jpl-earth-ephemerides.js",
"javascript/orbit-grid.js",
"javascript/seasons.js",
"javascript/seasons1-1.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>