Skip to content

Commit db549fe

Browse files
author
Antoine Montes
committed
add customCursor after a certain amount of clicks
1 parent abeebea commit db549fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</div>
1212
</div>
1313

14-
<button class="center customCursor" id="clickMe"></button>
15-
<label id="clickMeWrapper" for="clickMe" class="center customCursor">
14+
<button class="center" id="clickMe"></button>
15+
<label id="clickMeWrapper" for="clickMe" class="center">
1616
<div id="clickMeText">
1717
Click me!
1818
</div>

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ const eventsTable = [
5959
onCount: 15,
6060
action: () => {
6161
clickMeText.innerText = `having fun?`;
62+
clickMeWrapper.classList.add("customCursor");
63+
clickMe.classList.add("customCursor");
6264
playFart(regularFart);
6365
}
6466
},

0 commit comments

Comments
 (0)