Skip to content

Commit 0c70df9

Browse files
committed
Added proper counter representation
1 parent fb69278 commit 0c70df9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<meta charset="UTF-8"/>
5+
46
<title>Click me!</title>
57
<link rel="stylesheet" type="text/css" href="main.css">
68
</head>

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ for (let fart of farts) {
131131
// TODO: change it to onmousedown (it stopped working after separating button and label)
132132
clickMe.onclick = () => {
133133
counter += 1;
134-
popupText.innerText = counter;
134+
popupText.innerText = counter + "🍑💨";
135135
fireEvents();
136136
};
137137

main.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
height: 100px;
2424
}
2525
#popupText {
26+
display: inline-block;
27+
white-space: nowrap;
2628
position: absolute;
2729
left: 50%;
2830
top: 50%;
29-
transform: translate(-50%, -50%);
31+
transform: translate(-25%, -50%);
3032
font-size: 48px;
3133
}

0 commit comments

Comments
 (0)