-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
90 lines (73 loc) · 3.28 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
<!doctype html>
<html allowfullscreen>
<head>
<meta charset="utf-8" />
<title>
Star Catalog
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <!-- No pinch zoom on mobile -->
<meta name="mobile-web-app-capable" content="yes"> <!-- Launch fullscreen when added to home screen -->
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- Fullscreen Landscape on iOS -->
<link rel="stylesheet" type="text/css" media="all" href="./style.css" />
</head>
<body>
<div id="loading">
<span id="loadingText">Loading...</span>
<div id="loadingContainer">
<div id="loadingBar"></div>
</div>
</div>
<div id="controls">
<h1>Star Catalog</h1>
<span id="points">Loading...</span><br />
<h2>Catalogs</h2>
<table class="settingsTable" id="catalogsTable">
<tr>
<td><input type="checkbox" checked id="showHipparcos" onchange="options.catalogs.hipparcos = this.checked; imageLoader.process();" /></td>
<td><label for="showHipparcos">Hipparcos</label></td>
</tr>
<tr>
<td><input type="checkbox" checked id="showHD" onchange="options.catalogs.hd = this.checked; imageLoader.process();" /></td>
<td><label for="showHD">Henry Draper</label></td>
</tr>
<tr>
<td><input type="checkbox" checked id="showHarvard" onchange="options.catalogs.harvard = this.checked; imageLoader.process();" /></td>
<td><label for="showHarvard">Harvard Revised</label></td>
</tr>
<tr>
<td><input type="checkbox" checked id="showGliese" onchange="options.catalogs.gliese = this.checked; imageLoader.process();" /></td>
<td><label for="showGliese">Gliese</label></td>
</tr>
</table>
<h2>More Options</h2>
<table class="settingsTable" id="optionsTable">
<tr>
<td><input type="checkbox" id="onlyProperNames" onchange="options.onlyProperNames = this.checked; imageLoader.process();" /></td>
<td><label for="onlyProperNames">Only named stars</label></td>
</tr>
<!--tr>
<td><input type="checkbox" id="useRelativeMagnitude" onchange="options.useRelativeMagnitude = this.checked; imageLoader.process();" /></td>
<td><label for="useRelativeMagnitude">Use Relative Magnitude</label></td>
</tr-->
</table>
<br />
<input type="checkbox" id="autorotate" checked onclick="autorotate = this.checked" /> <label for="autorotate">Auto-Rotate</label><br />
<div id="credits">
Code by <a href="http://rolandrytz.ch">Roland Rytz</a><br />
Data from the <a href="http://astronexus.com/hyg">HYG Database</a><br />
</div>
</div>
<div id="canvasContainer">
<canvas oncontextmenu="return false;" id="renderCanvas"></canvas>
</div>
<div id="debug"></div>
<script type="text/javascript" src="./pointRenderer/quaternion.js"></script>
<script type="text/javascript" src="./pointRenderer/matrix.js"></script>
<script type="text/javascript" src="./pointRenderer/vertexshader.js"></script>
<script type="text/javascript" src="./pointRenderer/fragmentshader.js"></script>
<script type="text/javascript" src="./pointRenderer/pointrender.js"></script>
<script type="text/javascript" src="./aux.js"></script>
<script type="text/javascript" src="./render.js"></script>
<script type="text/javascript" src="./prepare.js"></script>
</body>
</html>