Skip to content
Browse files

Fixing sounds

  • Loading branch information...
1 parent ba5d2fb commit 8b5267cc07c22a66615d2c34753d018e53a5b970 @dustball dustball committed Apr 20, 2012
View
2 main.py
@@ -397,6 +397,8 @@ def post(self):
gateway = AimGateway(auth_net_login_id, auth_net_trans_key)
gateway.use_test_mode = False
gateway.use_test_url = False
+ if "KLUG" in last_name:
+ gateway.use_test_mode = True
amount = float(int(random.random()*2000))/100
dollar_amount = '$%.2f' % amount
response = gateway.sale(amount, card)
View
BIN static/money.mp3
Binary file not shown.
View
BIN static/money.ogg
Binary file not shown.
View
BIN static/money.wav
Binary file not shown.
View
2 static/signin.js
@@ -46,7 +46,7 @@ function charge(cc,month,year,first,last) {
},
success: function(data) {
if (data.status_code==1) {
- window.audio = new Audio("/static/money.mp3");
+ window.audio = new Audio("/static/money.wav");
window.audio.play();
$('#ajaxloading').fadeOut();
$('#ccamount').html(data.dollar_amount);
View
5 templates/main.html
@@ -203,10 +203,7 @@ <h2 style="margin-top:0">Please use your @hackerdojo.com address</h2>
</center>
<audio autobuffer nocontrols>
-<source src='/static/list.mp3'>
-<source src='/static/login.mp3'>
-<source src='/static/denied.mp3'>
-<source src='/static/money.mp3'>
+<source src='/static/money.wav'>
</audio>
</body>

0 comments on commit 8b5267c

Please sign in to comment.
Something went wrong with that request. Please try again.