-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (69 loc) · 2.64 KB
/
index.html
File metadata and controls
72 lines (69 loc) · 2.64 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Solar System</title>
<link rel='stylesheet' type='text/css' href='style.css'>
</head>
<body>
<canvas id='c'></canvas>
<div class='absolute topleft' id='debug_container' style='
background-color: transparent;
border: transparent;'>
<input type='checkbox' id='debug' onclick='
if(debugCheckbox.checked) {
debugPanel.style.visibility = "visible";
debugContainer.style.backgroundColor = "";
debugContainer.style.border = "";
} else {
debugPanel.style.visibility = "hidden";
debugContainer.style.backgroundColor = "transparent";
debugContainer.style.border = "transparent";
}
'>Debug</input>
<div id='hidden_debug' style="visibility: hidden;">
<p>
Use O, P to<br>change step<br>and speed size.<br>
Use + and - <br>to change FOV.<br>
(if in zoom band 0,<br>
change default FOV)<br>
</p>
<div id="info"></div>
</div>
</div>
<div class="absolute bottomleft" id="instructions">
Drag with mouse or use arrows to rotate view.<br>
Use shift, space bar or mouse wheel to zoom.<br>
Use WASD to move around.<br>
Use Q to stop/resume animation<br>
</div>
<div class="absolute topright" id="planets" style='
background-color: transparent;
border: transparent;'></div>
<div class="absolute bottomright" id="speed">
<div id="slider"> 0
<input id="slider1" type="range" min="0" max="2" step="0.01" value="1"
onchange="updateSpeedInfluence(this.value);" /> 2 <br />
<p><b>Planet Revolution Speed</b></p>
</div>
</div>
<div class="absolute bottom" id="navigation" style="visibility: hidden;">
<p id="planet_name"></p>
<div id='fix_selection'></div>
</div>
<script src="js/utils.js"></script>
<script src="js/math-utils.js"></script>
<script src="js/webgl-obj-loader.js"></script>
<script src="js/webgl.js"></script>
<script src="js/shaders.js"></script>
<script src="js/model.js"></script>
<script src="js/textures.js"></script>
<script src="js/nodes.js"></script>
<script src="js/camera.js"></script>
<script src="js/animation.js"></script>
<script src="js/draw.js"></script>
<script src="app.js"></script>
</body>
</html>