diff options
| author | Adam Soltys <[email protected]> | 2014-07-22 15:11:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-07-22 15:12:19 -0700 |
| commit | de1cdd2e3f9d9f36ce3d8e97335341cc3237e829 (patch) | |
| tree | 813afeb5a1393f66e20b45bd795d2a8123a505bd | |
| parent | eb75029273e477a6ed4486d204a19ee762af07bf (diff) | |
| download | coinos-server-de1cdd2e3f9d9f36ce3d8e97335341cc3237e829.tar.gz coinos-server-de1cdd2e3f9d9f36ce3d8e97335341cc3237e829.zip | |
Play a chaching sound when payment is received
| -rw-r--r-- | public/cash_register.wav | bin | 0 -> 15058 bytes | |||
| -rw-r--r-- | public/js/calculator.coffee | 1 | ||||
| -rw-r--r-- | public/js/calculator.js | 1 | ||||
| -rw-r--r-- | views/calculator/show.html | 1 |
4 files changed, 3 insertions, 0 deletions
diff --git a/public/cash_register.wav b/public/cash_register.wav Binary files differnew file mode 100644 index 00000000..4ec12957 --- /dev/null +++ b/public/cash_register.wav 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", { diff --git a/views/calculator/show.html b/views/calculator/show.html index d0be8db2..95924789 100644 --- a/views/calculator/show.html +++ b/views/calculator/show.html @@ -50,6 +50,7 @@ </div> <span id="received" class="btn btn-success">Payment Received. Thank you!</span> + <audio id="chaching" src="/cash_register.wav" hidden="true" enablejavascript="true"> </div> </form> |
