MCPcopy Index your code
hub / github.com/tsoding/button / newFart

Function newFart

index.js:3–12  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1const farts = [];
2
3function newFart(url) {
4 const fart = new Audio(url);
5 fart.preservesPitch = false;
6 fart.onended = () => {
7 shaking = false;
8 clickMe.disabled = false;
9 };
10 farts.push(fart);
11 return fart;
12}
13
14const regularFart = newFart("fart-83471-fixed-regular.flac");
15const critFart = newFart("fart-4-228244-fixed-crit.flac");

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…