generated from missing-user/web_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (49 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Solar system</title>
<!-- MOBILE––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS––––––––––––––––––––––– -->
<link rel="icon" type="image/png" href="images/favicon.png">
<script src="js/three.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script type="text/javascript" src="planet.js"></script>
<script type="text/javascript" src="vector.js"></script>
</head>
<body>
<style>
body {
background-color: #000;
margin: 0;
overflow: hidden;
font-size: 1.5em;
/* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #222;
}
</style>
<div style="position:absolute;">
<input type="range" value="1" min="1" max="10" step="any"
oninput="document.getElementById('planetscaler').value = this.value; origin.planet_scale = this.value"
id="planetscaler">
<label style="color:white;font-size: large;" for="planetscaler">planet scale</label>
<output style="color:white;font-size: large;" id="planetscaler" class="u-pull-right">10</output>
<br>
<input type="range" value="1e3" min="1e2" max="1e4" step="any"
oninput="document.getElementById('pixelsPerCello').value = this.value; dt = this.value" id="pixelsPerCell">
<label style="color:white;font-size: large;" for="pixelsPerCell">timescale</label>
<output style="color:white;font-size: large;" id="pixelsPerCello" class="u-pull-right">10</output>
<br>
<button type="button" name="button" onclick="if('image' in scene.background){
scene.background = new THREE.Color(0.7, 0.7, 0.7);}else{
scene.background = cubetex}">change background</button>
</div>
<div id="tooltip" style="background-color: black;color:white;position:absolute;font-size: large;"></div>
<script type="text/javascript" src="simulation.js"></script>
<script type="text/javascript" src="threed.js"></script>
</body>
</html>