File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
+ < meta charset ="UTF-8 "/>
5
+
4
6
< title > Click me!</ title >
5
7
< link rel ="stylesheet " type ="text/css " href ="main.css ">
6
8
</ head >
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ for (let fart of farts) {
131
131
// TODO: change it to onmousedown (it stopped working after separating button and label)
132
132
clickMe . onclick = ( ) => {
133
133
counter += 1 ;
134
- popupText . innerText = counter ;
134
+ popupText . innerText = counter + "🍑💨" ;
135
135
fireEvents ( ) ;
136
136
} ;
137
137
Original file line number Diff line number Diff line change 23
23
height : 100px ;
24
24
}
25
25
# popupText {
26
+ display : inline-block;
27
+ white-space : nowrap;
26
28
position : absolute;
27
29
left : 50% ;
28
30
top : 50% ;
29
- transform : translate (-50 % , -50% );
31
+ transform : translate (-25 % , -50% );
30
32
font-size : 48px ;
31
33
}
You can’t perform that action at this time.
0 commit comments