File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,26 @@ function init () {
4
4
const paragraph = document . getElementById ( "statusReport" ) ;
5
5
6
6
// Put your code for the exercises here.
7
-
7
+ button . addEventListener ( 'click' , function ( ) {
8
+ paragraph . innerHTML = 'Houston! We have liftoff!' ;
9
+ } )
10
+
11
+ missionAbort . addEventListener ( 'mouseover' , function ( event ) {
12
+ missionAbort . style . backgroundColor = 'red'
13
+ } )
14
+
15
+ missionAbort . addEventListener ( 'mouseout' , function ( event ) {
16
+ missionAbort . style . backgroundColor = ''
17
+ } )
18
+
19
+ missionAbort . addEventListener ( 'click' , function ( event ) {
20
+ // window.confirm('Are you sure you want to abort the mission?');
21
+ if ( window . confirm ( 'Are you sure you want to abort the mission?' ) == true ) {
22
+ paragraph . innerHTML = 'Mission Aborted! Space shuttle returning home.'
23
+ }
24
+ } )
25
+
26
+
8
27
}
9
28
10
29
window . addEventListener ( "load" , init ) ;
Original file line number Diff line number Diff line change 1
1
h1 {
2
2
text-decoration : underline;
3
+ font-size : 100px ;
3
4
}
5
+
6
+ p {
7
+ font-size : 90px ;
8
+ }
9
+
10
+ button {
11
+ font-size : 80px ;
12
+ }
You can’t perform that action at this time.
0 commit comments