aboutsummaryrefslogtreecommitdiffstats
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
parentc1cd55151fdea2bd80e27a6a9dfc905a243dd379 (diff)
downloadcoinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.tar.gz
coinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.zip
New payment received sound
-rw-r--r--public/js/calculator.coffee5
-rw-r--r--public/success.wavbin0 -> 57388 bytes
-rw-r--r--views/users/show.html2
3 files changed, 2 insertions, 5 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
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!
</div>
<button type="button" id="received" class="btn btn-success">Payment Received. Thank you!</button>
- <audio id="chaching" src="/cash_register.wav" hidden="true" enablejavascript="true">
+ <audio id="success" src="/success.wav" hidden="true" enablejavascript="true">
</div>