Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bet() { $.ajax({url:'https://satoshibet.com/games/dice/roll',type:'POST',data:betData,datatype:'jsonp',async:true,success:function(data){console.log(data);console.log($.parseJSON(data))}});
- }
- setBet = function () {
- betData = {
- 'wager[target]':'hi',
- 'wager[amount]':parseFloat($('#bet-amount').val()),
- 'wager[multiplier]':Math.floor(parseFloat($('#payout-amount').val()*1.5)),
- 'client_seed': Math.random().toString(36).substr(2)}
- return betData;
- }
- $('body').unbind().click(function(){setTimeout(function(){setBet() & $.post('https://satoshibet.com/games/dice/shuffle') & setTimeout(function(){ bet(); }, 200);}, 0); })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement