-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
31 lines (30 loc) · 1.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solar System</title>
<script src="sketch.js"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.3.1/p5.js"></script>
</head>
<body>
<label id = "date"> </label>
<button class="button" onclick = "playPause()">⏯</button>
<input type="date" id="changeDate" value="2000-01-01">
<button class="button" onclick = "changeDate(document.getElementById('changeDate').value)">Set Date</button>
<br>
<label>Planet Size Factor: </label>
<input type="text" id="PlanetSizeFactor" value="1">
<button class="button" onclick="PlanetSizeChange(parseFloat(document.getElementById('PlanetSizeFactor').value))">Submit</button>
<br>
<button class="button" onclick = "zoomChange(0.05)">Outer Solar System</button>
<br>
<button class="button" onclick = "zoomChange(1)">Inner Solar System</button>
<br>
<button class="button" id="Names" onclick = "HideNames()">Hide Names</button>
<br>
<button class="button" id="Sun" onclick = "HideSun()">Hide Sun</button>
</body>
</html>