Skip to content

Commit e55d789

Browse files
committed
Add call for contributions
1 parent cbcfb2c commit e55d789

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
</div>
1616
</div>
1717

18+
<div id="contrib">
19+
Contribute more haha events on <a href="https://github.com/tsoding/button" target="_blank">GitHub</a>
20+
</div>
21+
1822
<button class="center" id="clickMe"></button>
1923
<label id="clickMeWrapper" for="clickMe" class="center">
2024
<div id="clickMeText">

index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const regularAction = () => {
3535
playFart(regularFart, true);
3636
}
3737

38+
const thatsItForNow = () => {
39+
clickMeText.innerHTML = `That's it for now!`;
40+
playFart(regularFart, true);
41+
contrib.style.visibility = "visible";
42+
}
43+
3844
const eventsTable = [
3945
{
4046
onCount: 0,
@@ -155,7 +161,7 @@ const eventsTable = [
155161
},
156162
{
157163
onCount: 101,
158-
action: regularAction,
164+
action: thatsItForNow,
159165
}
160166
];
161167

main.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ body {
2626
width: 100%;
2727
object-fit: cover;
2828
}
29+
#contrib {
30+
visibility: hidden;
31+
position: absolute;
32+
left: 50%;
33+
top: 30%;
34+
transform: translate(-50%, -50%);
35+
}
2936
#popup {
3037
visibility: hidden;
3138
position: absolute;

0 commit comments

Comments
 (0)