-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (96 loc) · 5.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript" src="src/planet.js"></script>
<script type="text/javascript" src="src/star.js"></script>
<script type="text/javascript" src="src/solar_system.js"></script>
<script type="text/javascript" src="src/index.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<nav>
<h1><a href="/">Solar System Generator!</a></h1>
</nav>
<div id="sidebar">
<h3>Navigation</h3>
<button id="ss-index">See all solar systems</button>
<button id="resources">Extra resource links</button>
</div>
<main>
<div class="ss-container og">
<div id="welcome">
<h1>Welcome to your solar system generator!</h1>
<button id="new-ss-btn">Start a new solar system</button>
</div>
<div id="ss-form-container" class="hidden">
<form id="new-solar-system-form">
<label for="ss-name">Name your solar system: </label><br>
<input type="text" name="ss-name" id="ss-name" maxlength="40"><br>
<input id="create-button" type="submit" name="submit" value="Save name!">
</form>
</div>
<div id="sun-form-container" class="hidden">
<form id="new-sun-form">
<label for="sun-name" class=sun-name>Name your star: </label>
<input type="text" name="sun-name" id="sun-name" class="sun-name" maxlength="15">
<label for="spectrum" class="spectrum">Choose your star's spectral type: </label>
<select id="spectrum" name="spectrum" class="spectrum">
<option value="O">O</option>
<option value="B">B</option>
<option value="A">A</option>
<option value="F">F</option>
<option value="G">G</option>
<option value="K">K</option>
<option value="M">M</option>
</select>
<p><em>This project uses the Morgan–Keenan system of star classification.</em></p>
<a href="https://astrobackyard.com/types-of-stars/" target="_blank"><em>Read more about the Morgan–Keenan system here</em></a>
<input id="create-sun-button" type="submit" name="submit" value="Submit my sun">
</form>
</div>
<div id="planet-number-container" class="hidden">
<h2>How many planets would you like?</h2>
<form id="planet-number-form">
<input class="number" type="radio" id="number1" name="number" value="1" checked>
<label class="number" for="number1">1</label>
<input class="number" type="radio" id="number2" name="number" value="2">
<label class="number" for="number2">2</label>
<input class="number" type="radio" id="number3" name="number" value="3">
<label class="number" for="number3">3</label>
<input class="number" type="radio" id="number4" name="number" value="4">
<label class="number" for="number4">4</label>
<input class="number" type="radio" id="number5" name="number" value="5">
<label class="number number5" for="number5">5</label>
<input id="p-number-button" type="submit" name="submit" value="Submit Number!">
</form>
</div>
<div id="planet-form-container" class="hidden">
<h2>Now add planet number <span id="p-number">test</span>!</h2>
<form id="new-planet-form">
<label class="planet-input" for="planet-name">Name your planet: </label>
<input class="planet-input" type="text" name="planet-name" id="planet-name" maxlength="20">
<label class="planet-input" for="composition">Choose your planet's composition</label>
<select class="planet-input" id="composition" name="composition">
<option value="rocky">Rocky</option>
<option value="earth-like">Earth-like</option>
<option value="gaseous">Gaseous</option>
<option value="icy">Icy</option>
</select>
<label class="planet-input" for="size">Choose your planet's size</label>
<select class="planet-input" id="size" name="size">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
<label class="planet-input" for="rings">Add rings around this planet</label>
<input class="planet-input" type="checkbox" id="rings" name="rings" value="true">
<input id="create-planet-button" type="submit" name="submit" value="Save planet!">
</form>
</div>
</div>
</main>
<footer></footer>
</body>
</html>