-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathseasons4.html
200 lines (186 loc) · 7.49 KB
/
seasons4.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Seasons 4: Investigating Earth's tilt and hours of daylight</title>
<link href="../stylesheets/style.css" rel="stylesheet" type="text/css"/>
<link href="../stylesheets/rangeinput.css" rel="stylesheet" type="text/css" />
<link href="../stylesheets/table.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js"></script>
<script type="text/javascript" src="../lib/scenejs-0.8.0/scenejs.js"></script>
<script type="text/javascript" src="../lib/glmatrix.js"></script>
<script type="text/javascript" src="../lib/sprintf.js"></script>
<script type="text/javascript" src="../lib/modernizr-1.6.js"></script>
<script type="text/javascript" src="../lib/table/fastinit.js"></script>
<script type="text/javascript" src="../lib/table/tablesort.js"></script>
<style>
/* Override skin1.css to make it vertical */
/* height is now larger than width */
.slider {
height:300px;
width:9px;
margin:0 0 0 60px;
}
.vertical .slider {
height:300px;
width:9px;
margin:20px 8px 12px 24px;
}
/* tweak drag handle position */
.handle {
top:0;
left:-10px;
}
/* position progressbar on the bottom edge */
.progress {
width:9px;
position:absolute;
bottom:0;
}
.range {
background: none repeat scroll 0 0 transparent;
border: 0 none;
border-radius: 2px 2px 2px 2px;
color: #FFFFFF;
float: left;
font-size: 12px;
margin: -5px 0 10px;
text-align: center;
width: 30px;
}
.vertical .range {
background: none repeat scroll 0 0 transparent;
border: 0 none;
border-radius: 2px 2px 2px 2px;
color: #FFFFFF;
float: left;
font-size: 14px;
margin: -8px 12px 0px -26px;
text-align: center;
width: 30px;
}
</style>
</head>
<div id="container">
<div id="header-inner">
<h1 id="title">Seasons 4: Investigating Earth's tilt and hours of daylight</h1>
</div>
<div id="content">
<div id="webglCanvasContainer">
<canvas id="theCanvas" height="700px", width="1000px"></canvas>
<div id="info-label" class="webgl-canvas-label transparent-ui">
<label><input id="info-view" type="checkbox" checked/></label>
<div id="info-content"></div>
</div>
<div id="info-graph" class="webgl-canvas-graph transparent-ui">
<label><input id="graph-view" type="checkbox" /></label>
<canvas id="altitude-graph-canvas" width="1" height="1"></canvas>
<canvas id="radiation-lon-graph-canvas" width="1" height="1"></canvas>
<canvas id="radiation-lat-graph-canvas" width="1" height="1"></canvas>
</div>
<div id="controls-label" class="webgl-canvas-label transparent-ui">
<form id="show-me">
<fieldset>
<legend>Controls</legend>
<label><input id="earth-rotation" type="checkbox"/> Rotation</label><br />
<label><input id="surface-view" type="checkbox"/> Surface View</label><br />
</fieldset>
<br />
<fieldset>
<legend>Display</legend>
<label><input id="solar-altitude-graph" type="checkbox" checked/> Solar Altitude</label><br />
</fieldset>
<br />
<fieldset>
<legend>Ecliptic Grids</legend>
<label><input id="earth-grid" type="checkbox" checked/> Earth Square</label><br />
</fieldset>
<br />
<fieldset>
<legend>Markers</legend>
<label><input id="sun-earth-line" type="checkbox" checked/> Center Ray</label><br />
<label><input id="sun-rise-set" type="checkbox" checked/> Rise/Set</label><br />
<label><input id="lat-hour-markers" type="checkbox"/> Latitude Hours</label><br />
</fieldset>
<br />
<form id="select-city">
<fieldset>
<legend>Select city</legend>
<select id="selected-city" name="selected-city">City
<option disabled selected>city ...</option>
</select>
</fieldset>
</form>
<form id="choose-month">
<fieldset>
<legend>Month</legend>
<label><input type="radio" name="month" value="jun" checked> Jun</input></label>
<label><input type="radio" name="month" value="sep"> Sep</input></label><br />
<label><input type="radio" name="month" value="dec"> Dec</input></label>
<label><input type="radio" name="month" value="mar"> Mar</input></label>
</fieldset>
</form>
<form id="choose-tilt">
<fieldset>
<legend>Tilt of Earth</legend>
<label><input type="radio" name="tilt" value="yes" checked> Yes</input></label>
<label><input type="radio" name="tilt" value="no"> No</input></label>
</fieldset>
</form>
</form>
</div>
<div id="experiment-panel" class="webgl-canvas-panel transparent-ui">
<div id="experiment-checkbox"><label ><b>Experiment Panel</b><input id="experiment-view" type="checkbox"/></label></div>
<div id="experiment-content">
<br />
First select a city and date ... then predict the number
<form id="daylight-hours-prediction">
<label id="daylight-hours-prediction-label" for="daylight-hours-prediction">of daylight hours:</label>
<input type="text" id="daylight-hours-prediction" name="daylight-hours-prediction" />
<input type="submit" value="Check" />
</form>
<table id='city-data-table' class='sortable'>
<thead>
<tr>
<th class='sortfirstasc text'>City</th>
<th class='text'>Month</th>
<th class='number'>Daylight Hours</th>
<th class='number'>Prediction</th>
<th class="nosort">Season ?</th>
<th class="nosort">Graph</th>
</thead>
<tbody id="city-data-table-body">
<tr>
<td class='sortfirstasc text'>San Francisco</td>
<td class='text'>June</td>
<td class='number'>13.3</td>
<td class='number'>12</td>
<td class="nosort">Fall</td>
<td class="nosort">Graph</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="debug-label" class="webgl-canvas-label transparent-ui" style="font-size:90%">
<div id="debug-content"></div>
<div id="debug-checkbox"><label >debugging output <input id="debug-view" type="checkbox"/></label></div>
</div>
</div>
<div id="latitude-slider-div" class="webgl-canvas-label transparent-ui vertical" style="font-size:90%">
<input id="latitude-slider" name="latitude-slider" type="range" min="-90" max="90" value="0">
</div>
<div id="info">
</div>
<div id="log">
<h3>SceneJS Log</h3>
<div id="theLoggingDiv"></div>
</div>
</div>
</div>
<script type="text/javascript" src="jpl-earth-ephemerides.js"></script>
<script type="text/javascript" src="cities.js"></script>
<script type="text/javascript" src="seasons-v2.js"></script>
<script type="text/javascript" src="seasons4.js"></script>
</body>
</html>