/
index.html
executable file
·129 lines (114 loc) · 6.58 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Planet Compare</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="https://callum.com">
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="js/three.r72dev.min.js"></script>
<script type="text/javascript" src="js/Detector.js"></script>
<script type="text/javascript" src="js/stats.min.js"></script>
<script type="text/javascript" src="js/TrackballControls.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body onload="app()">
<table id="planet_selector">
<tr>
<td><a href="#" onClick="select('SUN');"><img src='img/sun_thumb.png'></td>
<td><a href="#" onClick="select('MERCURY');"><img src='img/mercury_thumb.png'></td>
<td><a href="#" onClick="select('VENUS');"><img src='img/venus_thumb.png'></a></td>
<td><a href="#" onClick="select('EARTH');"><img src='img/earth_thumb.png'></a></td>
<td><a href="#" onClick="select('MOON');"><img src='img/moon_thumb.png'></a></td>
<td><a href="#" onClick="select('MARS');"><img src='img/mars_thumb.png'></a></td>
<td><a href="#" onClick="select('JUPITER');"><img src='img/jupiter_thumb.png'></a></td>
<td><a href="#" onClick="select('SATURN');"><img src='img/saturn_thumb.png'></a></td>
<td><a href="#" onClick="select('URANUS');"><img src='img/uranus_thumb.png'></a></td>
<td><a href="#" onClick="select('NEPTUNE');"><img src='img/neptune_thumb.png'></a></td>
<td><a href="#" onClick="select('PLUTO');"><img src='img/pluto_thumb.png'></a></td>
</tr>
<tr>
<td><a href="#" onClick="select('SUN');">SUN</a></td>
<td><a href="#" onClick="select('MERCURY');">MERCURY</a></td>
<td><a href="#" onClick="select('VENUS');">VENUS</a></td>
<td><a href="#" onClick="select('EARTH');">EARTH</a></td>
<td><a href="#" onClick="select('MOON');">MOON</a></td>
<td><a href="#" onClick="select('MARS');">MARS</a></td>
<td><a href="#" onClick="select('JUPITER');">JUPITER</a></td>
<td><a href="#" onClick="select('SATURN');">SATURN</a></td>
<td><a href="#" onClick="select('URANUS');">URANUS</a></td>
<td><a href="#" onClick="select('NEPTUNE');">NEPTUNE</a></td>
<td><a href="#" onClick="select('PLUTO');">PLUTO</a></td>
</tr>
</table>
<table id="planet_selector_description">
<tr><td id="planet_selector_description_cell">CLICK ON A CELESTIAL BODY ● LEFT MOUSE BUTTON TO MOVE</td></tr>
</table>
<div id="about_box_icon"><a href="#" onclick='showAbout(true);'><img src="img/about.png"></a></div>
<div id="about_box_bkg"
class="hide"></div>
<div id="about_box"
class="hide">
<h2><a href="#"
onclick="showHelpContents('about_text');">About</a> ● <a href="#"
onclick="showHelpContents('controls_text_1');">Controls</a> ● <a href="#"
onclick="showHelpContents('future_text');">Future</a> ● <a href="#"
onclick="showHelpContents('credits_text');">Credits</a> ● <a href="#"
onclick="showHelpContents('contact_text');">Contact</a> ● <a href="#"
onclick="showAbout(false);">Close</a></h2>
<div class="show help_contents" id="about_text">
<ul>
<li>A simple way to compare the sizes of our solar system's planets, the sun and the moon.</li>
<br>
<li>You can compare them side by side or with the smaller object positioned on the surface of the larger one.</li>
</ul>
</div>
<div class="hide help_contents"
id="controls_text_1">
<ul>
<li>Press the <i>left</i> button and move the mouse to rotate</li>
<br>
<li>After you have selected two objects, double click the <i>left</i> button anywhere on the larger one and the smaller one will be positioned at that location</li>
</ul>
</div>
<div class="hide help_contents"
id="future_text">
<ul>
<li>Get better texture maps of the surface - especially Pluto!</li>
<br>
<li>Investigate using shaders to make the planets more realistic - e.g. the Sun</li>
<br>
<li>Probably much, much more I haven't thought of yet</li>
</ul>
</div>
<div class="hide help_contents"
id="credits_text">
<ul>
<li>NASA data and image sites - many different ones but try <a target="_new"
href="http://eol.jsc.nasa.gov//">here</a> first</li>
<br>
<li>Some of the planet texture maps come from <a href="http://planetpixelemporium.com/earth.html"
target="_new">JHT's Planetary Pixel Emporium</a></li>
<br>
<li><a href="http://threejs.org/"
target="_new">three.js</a> - a very nice WebGL library</li>
<br>
<li>Innumerable JavaScript snippets from around the Web - thank you one and all</li>
<br>
<li><a href="https://news.ycombinator.com/user?id=ChrisGranger" target="_new">Chris Granger</a> on Hacker News for some great feedback</li>
</ul>
</div>
<div class="hide help_contents"
id="contact_text">
<ul>
<li>Visit my page at <a target="_new" href="http://callum.com">http://callum.com</a> to see other examples of my work and contact information</li>
<br>
<li>The source code for this project is <a href="https://github.com/callumprentice/callumprentice.github.io/tree/master/apps/planet_compare"
target="_new">available</a> along with source for everything else I've made <a href="https://github.com/callumprentice" target="_new">here</a></li>
<br>
<li>Advice, suggestions, bug reports much appreciated</li>
</ul>
</div>
</div>
</body>
</html>