forked from mivion/ephemeris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoon.html
333 lines (309 loc) · 11.6 KB
/
moon.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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!doctype html>
<html>
<head>
<title>Moon Tracker | Natal Transit Tracker & Astrology Positions</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<style type='text/css'>
* {
font: 14pt Tahoma;
}
input[type=button] {
border-style: outset;
border-width: 1px;
border-color: white;
height: 75px;
margin-right: 5px;
}
input[type=button]:active {
border-style: inset;
border-width: 1px;
border-color: white;
}
body {
width: 960px;
margin: auto;
padding-left: 15px;
}
label, select {
display: inline-block;
width: 100px;
}
/*
label {
position: relative;
top: -1.2em;
left: 5px;
}
select {
margin: 1.5em 0 0 -100px;
}
*/
#housesystem {
width: 160px;
}
#datewrapper {
width: 430px;
}
.attribution {
width: 430px;
}
.planets {
margin: 0 0 20px 20px;
}
#container {
position: relative;
height: 460px;
width: 460px;
}
#chartcanvas {
z-index: 0;
}
#transitcanvas {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
#progressioncanvas {
position: absolute;
top: 0px;
left: 0px;
z-index: 2;
}
#natalcanvas {
position: absolute;
top: 0px;
left: 0px;
z-index: 2;
}
#transitingaspects {
height: 310px;
margin-top: 10px;
}
#graphicalephemeris {
position: relative;
height: 770px;
width: 460px;
float: right;
}
#moonphoto {
height: 216px;
width: 216px;
}
#moonContainer {
position: relative;
height: 216px;
width: 460px;
}
#moonMetadata {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
#natalcontainer {
position: relative;
height: 770px;
width: 460px;
float: right;
}
#ephemeriscanvas {
z-index: 0;
}
#currentdaycanvas {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
#city {
font: 12pt Tahoma;
width: 300px;
}
#longitude, #latitude {
width: 140px;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!--<script type='text/javascript' src='jquery.min.js' charset='utf-8'></script> -->
<script type='text/javascript' src='index.js' charset='utf-8'></script>
<script type='text/javascript' src='common.js' charset='utf-8'></script>
<script type='text/javascript' src='load.js' charset='utf-8'></script>
<script type='text/javascript' src='currenttime.js' charset='utf-8'></script>
<script type='text/javascript' src='natalchart.js' charset='utf-8'></script>
<script type='text/javascript' src='swe_houses.js' charset='utf-8'></script>
<script type='text/javascript' src='calculatedTime.js' charset='utf-8'></script>
<script type='text/javascript' src='calculateMoon.js' charset='utf-8'></script>
<script type='text/javascript' src='loadglyphs.js' charset='utf-8'></script>
<script type='text/javascript' src='moonephemeris.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/index.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/index.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/constant.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/julian.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/delta.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/epsilon.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/lonlat.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/gplan.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/precess.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/util.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/kepler.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/body.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/sun.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/aberration.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/altaz.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/constellation.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/deflection.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/diurnal.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/fk4fk5.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/light.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/moon.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/nutation.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/planet.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/refraction.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/siderial.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/star.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/transit.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/vearth.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/processor.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/index.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/mercury.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/venus.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/earth.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/moonlr.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/moonlat.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/mars.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/jupiter.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/saturn.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/uranus.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/neptune.js' charset='utf-8'></script>
<script type='text/javascript' src='astronomy/moshier/plan404/pluto.js' charset='utf-8'></script>
<script type='text/javascript' src='shortcut.js' charset='utf-8'></script>
<script type="text/javascript">
$(document).ready(function() {
$('#search').click(function() {
$("#search").prop('value', 'Searching...');
$.getJSON('http://ws.geonames.org/searchJSON?q='+$('#city').val()+'&maxRows=1&user=kentbye&style=medium&callback=?',
function(data){
$('#city').val(data.geonames[0].name + ", " + data.geonames[0].adminName1 + ", " + data.geonames[0].countryCode);
$('#latitude').val(data.geonames[0].lat);
$('#longitude').val(data.geonames[0].lng);
$("#search").prop('value', 'Look up GPS of City');
});
});
});
</script>
<script type="text/javascript">
var animateFlag = false;
document.onkeydown = function(evt) {
evt = evt || window.event;
switch (evt.keyCode) {
case 37:
if (spacebarAnimate) {
$e.incrementMoon(-3600);
break;
}
case 39:
if (spacebarAnimate) {
$e.incrementMoon(3600);
break;
}
case 32:
if (spacebarAnimate) {
evt.preventDefault();
if (animateFlag) {
$e.animateStop();
animateFlag = false;
} else {
$e.animateStartMoon();
animateFlag = true;
}
break;
}
}
};
</script>
</head>
<body onload='$e.currenttime ("moon")'>
<div id="graphicalephemeris">
<canvas id="ephemeriscanvas" width = "460" height = "770" ></canvas>
<canvas id="currentdaycanvas" width = "460" height = "770" ></canvas>
</div>
<div id="moonContainer">
<div id="moonphoto"></div>
<canvas id="moonMetadata" width = "460" height = "216" ></canvas>
</div>
<div id="container">
<canvas id="chartcanvas" width = "460" height = "460" ></canvas>
<canvas id="transitcanvas" width = "460" height = "460" ></canvas>
<canvas id="progressioncanvas" width = "460" height = "460" ></canvas>
<canvas id="natalcanvas" width = "460" height = "460" ></canvas>
</div>
<div id="transitingaspects">
<canvas id="aspectcanvas" width = "460" height = "310" ></canvas>
</div>
<div id="datewrapper">
Enter Transit Date (<a href="http://www.timeanddate.com/worldclock/converter.html">UTC time</a>)
<form id="transitdateinput">
<label for = "transitmonthfield">Month</label>
<select id = "transitmonthfield">
</select>
<label for = "transitdayfield">Day</label>
<select id = "transitdayfield">
</select>
<label for = "transityearfield">Year</label>
<select id = "transityearfield">
</select><br>
<label for = "transithourfield">Hour</label>
<select id = "transithourfield">
</select>
<label for = "transitminutefield">Minute</label>
<select id = "transitminutefield">
</select>
<label for = "transitsecondfield">Second</label>
<select id = "transitsecondfield">
</select><br>
<br>Enter Birth Time in <a href="http://www.timeanddate.com/worldclock/converter.html">UTC/GMT</a><br>
<label for = "natalmonthfield">Month</label>
<select id = "natalmonthfield">
</select>
<label for = "nataldayfield">Day</label>
<select id = "nataldayfield">
</select>
<label for = "natalyearfield">Year</label>
<select id = "natalyearfield">
</select><br>
<label for = "natalhourfield">Hour</label>
<select id = "natalhourfield">
</select>
<label for = "natalminutefield">Minute</label>
<select id = "natalminutefield">
</select>
<label for = "natalsecondfield">Second</label>
<select id = "natalsecondfield">
</select><br>
<label for = "housesystem">House System</label>
<select id = "housesystem">
<input type="checkbox" id="unknowntime">Unknown Time
</select>
<div id="cityinput"><label for="city">City, State</label>
<input id="city" name="city" type="text" onfocus="$e.disableSpacebarAnimate(false)" onfocus="$e.disableSpacebarAnimate(true)">
</div>
<div id="debug"></div>
<div id="latlong">
<input id="search" type="button" value="Look up GPS of City" />
<p><label for="Latitude">Latitude</label>
<input id="latitude" name="latitude" type="text"></p>
<p><label for="longitude">Longitude</label>
<input id="longitude" name="longitude" type="text"></p>
</div>
</form>
</div>
<p>
<input type='button' value='Calculate Planetary Positions' onclick='$e.calculateMoon (true, true)'>
</p>
<div class="attribution">
<p>Made by <a href="mailto:[email protected]">Kent Bye</a></p>
</div>
</body>
</html>