From 36c53d8924d90aebf909212c6e7b6f1b0f8df25c Mon Sep 17 00:00:00 2001 From: jasonleonhard Date: Mon, 1 Oct 2018 17:56:45 -0700 Subject: [PATCH] add sound to click --- app.js | 9 +++++++-- index.html | 1 + wack.mp3 | Bin 0 -> 3456 bytes 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 wack.mp3 diff --git a/app.js b/app.js index 03c3d79..d9085f5 100644 --- a/app.js +++ b/app.js @@ -1,7 +1,6 @@ // when wacked update score let wack = (id, value) => { - - + play() updateScore(id, value) } @@ -32,3 +31,9 @@ let show_rand_mole = () => { }, 1000); } show_rand_mole() // call on page load + + +function play() { + var audio = document.getElementById("audio"); + audio.play(); +} diff --git a/index.html b/index.html index 8f0385f..f8baed4 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,7 @@
+ diff --git a/wack.mp3 b/wack.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..263342a0ea4282b81d81c9eda4bb57bad4c56dc1 GIT binary patch literal 3456 zcmcK7`9IYA_W=wr=)Iw=RRCPh5ksOUN>WjKlWREO`^l3rVO)6Vt>;2{X`4>K)^W*v9oaf^_9_KtB2ikM%1zcSK#s&aj0nkgN z0|ej#;Nfxd03t=1_|AJkR*9ZXe9<8G7qCjm$;^k z4|NMoKGClX%l8}|h2L#2W}OfdQlSGNM%PoZGFNh~+66MZX51;gcEKDb zH6wXMGyd-$vIeWm8!^|3;DaZqzMo{F)V-;m$QaY>$7D;QlFE9!TXmW?j{LX;N75&g zgH*b70)~Ly5-N!pWz}8JdHZub{@Iwq1uwZD#ns#Oaa27I-TvFV`@!1}1zrk%^8B+! z7&EY2wYDL>vt+oHhDI)PQS_dU%X*Jh89D0m<(g20o9lQCQ*}vMY0k}R<1HgB#>sgB zYk8PTzGXM^ew2ym)b(O|aQi8b;e)iIFV2~rglNW9QKwu7!K|jDPYes+TXxQmrVy#*J{^0Icq|{0G_V72aUq)`vT-`qL zI#bQ0YL$17BbkK*EABM)-p|CV47IpTC6Rs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