(fart, randomPitch)
| 21 | } |
| 22 | |
| 23 | function playFart(fart, randomPitch) { |
| 24 | for (const f of farts) { |
| 25 | f.pause(); |
| 26 | f.currentTime = 0; |
| 27 | } |
| 28 | |
| 29 | fart.playbackRate = randomPitch ? randomPlaybackRate() : 1; |
| 30 | fart.play(); |
| 31 | shaking = true; |
| 32 | } |
| 33 | |
| 34 | const regularAction = () => { |
| 35 | clickMeText.innerText = `Congrats! You clicked it ${counter} times!`; |
no test coverage detected
searching dependent graphs…