aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-11-11 14:59:37 -0800
committerAdam Soltys <[email protected]>2015-11-11 14:59:37 -0800
commitcfed6f916ea7d63821385db338daecc4a2bda4c2 (patch)
treef1b045ad7e3fc5d160bebfcc8b13cee7d9c4fef1 /public
parentc1cd55151fdea2bd80e27a6a9dfc905a243dd379 (diff)
downloadcoinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.tar.gz
coinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.zip
New payment received sound
Diffstat (limited to 'public')
-rw-r--r--public/js/calculator.coffee5
-rw-r--r--public/success.wavbin0 -> 57388 bytes
2 files changed, 1 insertions, 4 deletions
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
--- /dev/null
+++ b/public/success.wav
Binary files differ