aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/cash_register.wavbin0 -> 15058 bytes
-rw-r--r--public/js/calculator.coffee1
-rw-r--r--public/js/calculator.js1
-rw-r--r--views/calculator/show.html1
4 files changed, 3 insertions, 0 deletions
diff --git a/public/cash_register.wav b/public/cash_register.wav
new file mode 100644
index 00000000..4ec12957
--- /dev/null
+++ b/public/cash_register.wav
Binary files 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", {
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>