From de1cdd2e3f9d9f36ce3d8e97335341cc3237e829 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 22 Jul 2014 15:11:16 -0700 Subject: Play a chaching sound when payment is received --- public/cash_register.wav | Bin 0 -> 15058 bytes public/js/calculator.coffee | 1 + public/js/calculator.js | 1 + 3 files changed, 2 insertions(+) create mode 100644 public/cash_register.wav (limited to 'public') diff --git a/public/cash_register.wav b/public/cash_register.wav new file mode 100644 index 00000000..4ec12957 Binary files /dev/null and b/public/cash_register.wav differ diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index 48e14764..7b42bab5 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -159,6 +159,7 @@ setupSocket = -> $('#amount').blur() $('#payment').hide() $('#received').fadeIn('slow') + $('#chaching')[0].play() if g.user $.post("/#{g.user}/transactions", diff --git a/public/js/calculator.js b/public/js/calculator.js index ba6f6511..71aa22da 100644 --- a/public/js/calculator.js +++ b/public/js/calculator.js @@ -159,6 +159,7 @@ $('#amount').blur(); $('#payment').hide(); $('#received').fadeIn('slow'); + $('#chaching')[0].play(); } if (g.user) { return $.post("/" + g.user + "/transactions", { -- cgit v1.2.3