From cfed6f916ea7d63821385db338daecc4a2bda4c2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Nov 2015 14:59:37 -0800 Subject: New payment received sound --- public/js/calculator.coffee | 5 +---- public/success.wav | Bin 0 -> 57388 bytes views/users/show.html | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 public/success.wav diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index cc45cae5..4d6b0013 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -116,17 +116,14 @@ listen = -> g.blockchain = new WebSocket("wss://ws.blockchain.info/inv") g.blockchain.onopen = -> - $('#connection').fadeIn().removeClass('glyphicon-exclamation-sign').addClass('glyphicon-signal') clear(SOCKET_FAIL) g.blockchain.send('{"op":"addr_sub", "addr":"' + g.user.address + '"}') g.blockchain.onerror = -> - $('#connection').addClass('glyphicon-exclamation-sign').removeClass('glyphicon-signal') g.blockchain = null fail(SOCKET_FAIL) g.blockchain.onclose = -> - $('#connection').addClass('glyphicon-exclamation-sign').removeClass('glyphicon-signal') g.blockchain = null fail(SOCKET_FAIL) listen() @@ -151,7 +148,7 @@ logTransaction = (txid, amount) -> $('#amount').blur() $('#payment').hide() $('#received').fadeIn('slow') - $('#chaching')[0].play() + $('#success')[0].play() g.user.index++ $.post("/#{g.user.username}/transactions", diff --git a/public/success.wav b/public/success.wav new file mode 100644 index 00000000..50547d2b Binary files /dev/null and b/public/success.wav differ diff --git a/views/users/show.html b/views/users/show.html index 5b8314a3..f37afad4 100644 --- a/views/users/show.html +++ b/views/users/show.html @@ -44,6 +44,6 @@ Your email has been verified. Thank you! -