File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ const eventsTable = [
124
124
{
125
125
onCount : 69 ,
126
126
action : ( ) => {
127
+ // TODO: add this sound here https://www.youtube.com/watch?v=3WAOxKOmR90
127
128
clickMe . disabled = true ;
128
129
clickMeText . innerText = `Nice!` ;
129
130
playFart ( critFart ) ;
@@ -137,7 +138,17 @@ const eventsTable = [
137
138
onCount : 100 ,
138
139
action : ( ) => {
139
140
clickMe . disabled = true ;
140
- setTimeout ( ( ) => clickMe . disabled = false , 3000 ) ;
141
+ setTimeout ( ( ) => {
142
+ clickMe . disabled = false ;
143
+ critImg . animate ( [
144
+ { opacity : 0 } ,
145
+ { opacity : 1 } ,
146
+ { opacity : 0 }
147
+ ] , {
148
+ duration : 1000 ,
149
+ fill : "forwards"
150
+ } ) ;
151
+ } , 3000 ) ;
141
152
clickMeText . innerText = `HERE COMES THE BIG ONE` ;
142
153
playFart ( bigoneFart ) ;
143
154
}
You can’t perform that action at this time.
0 commit comments