File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < title > Flight Simulator</ title >
5+ < link rel = "stylesheet " type = "text/css " href = "styles.css " />
6+ < script src = "scripts.js "> </ script >
7+ </ head >
8+ < body >
9+ < div class ="centered ">
10+ < h1 > Flight Simulator</ h1 >
11+ < h2 > Current Flight Status</ h2 >
12+ < p id = "flightStatus "> Space shuttle ready for takeoff</ p >
13+ < h2 > Shuttle Trajectory</ h2 >
14+ </ div >
15+ < div id ="flightDisplay ">
16+ < div class ="center-block ">
17+ < h3 > Fuel Levels</ h3 >
18+ < p > Tank Full</ p >
19+ < h3 > Astronaut Chat</ h3 >
20+ < p > Houston, we are ready when you are!</ p >
21+ </ div >
22+ < div id = "shuttleBackground ">
23+ < img src = "LaunchCode_rocketline_white.png " height = "75 " width = "75 " id = "rocket "/>
24+ </ div >
25+ < div class ="center-block ">
26+ < button id ="up "> Up</ button >
27+ < button id ="down "> Down</ button >
28+ < button id ="right "> Right</ button >
29+ < button id ="left "> Left</ button >
30+ < h3 > Space Shuttle Height</ h3 >
31+ < p id ="spaceShuttleHeight "> 0</ p > < span > miles</ span >
32+ </ div >
33+ </ div >
34+ < div class ="centered ">
35+ < button id = "takeoff "> Take off</ button >
36+ < button id = "landing "> Land</ button >
37+ < button id = "missionAbort "> Abort Mission</ button >
38+ </ div >
39+ </ body >
40+ </ html >
Original file line number Diff line number Diff line change 1+ // Write your JavaScript code here.
2+ // Remember to pay attention to page loading!
Original file line number Diff line number Diff line change 1+ # shuttleBackground {
2+ background-color : green;
3+ display : inline-block;
4+ height : 80% ;
5+ width : 40% ;
6+ position : relative;
7+ }
8+
9+ # flightStatus {
10+ color : green;
11+ }
12+
13+ # flightDisplay {
14+ text-align : center;
15+ height : 400px ;
16+ width : 100% ;
17+ }
18+
19+ # spaceShuttleHeight {
20+ display : inline-block;
21+ }
22+
23+ .center-block {
24+ text-align : center;
25+ display : inline-block;
26+ }
27+
28+ .centered {
29+ text-align : center;
30+ }
You can’t perform that action at this time.
0 commit comments