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 ="style.css "/>
6+ < script src = "script.js "> </ script >
7+ </ head >
8+ < body >
9+ < h1 > Flight Simulator</ h1 >
10+ < p id ="statusReport "> The shuttle is on the ground</ p >
11+ < button id = "liftoffButton "> Take off</ button >
12+ < button id = "abortMission "> Abort mission</ button >
13+ </ body >
14+ </ html >
Original file line number Diff line number Diff line change 1+ function init ( ) {
2+ const missionAbort = document . getElementById ( "abortMission" ) ;
3+ const button = document . getElementById ( "liftoffButton" ) ;
4+ const paragraph = document . getElementById ( "statusReport" ) ;
5+
6+ // Put your code for the exercises here.
7+
8+ }
9+
10+ window . addEventListener ( "load" , init ) ;
Original file line number Diff line number Diff line change 1+ h1 {
2+ text-decoration : underline;
3+ }
You can’t perform that action at this time.
0 commit comments