In this article we have tried to script a series for betting sites offer code.
I hope to be satisfactory. The code created by our programming team is working night and day. So please Likes and publish.
var AutoBet = {
// Config
multiplier: 6,
baseBet: null,
bet: null,
prevBalance: null,
run: false,
clicked: true,
handle: null,
// Or DOM
balance: $ ( '# balances-lg'),
betBtn: $ ( '# btn-bet-dice'),
amount: $ ( '# amount'),
// Custom DOM
startBtn: $ ( '# startBtn'),
stopBtn: $ ( '# stopBtn'),
endBtn: $ ( '# endBtn'),
end: function () {
AutoBet.balance.unbind ( 'DOMSubtreeModified');
AutoBet.startBtn.remove ();
AutoBet.stopBtn.remove ();
AutoBet.endBtn.remove ();
clearInterval (AutoBet.handle);
}
,
start: function () {
AutoBet.end ();
AutoBet.handle = setInterval (function () {
if (AutoBet.clicked == false) {
AutoBet.betBtn.trigger ( 'click');
AutoBet.clicked = true;
}
}, 100);
AutoBet.balance.bind ( 'DOMSubtreeModified', function (event) {
if (! AutoBet.run) return;
var balance = parseFloat (AutoBet.balance.text ());
if (balance <AutoBet.prevBalance) {
AutoBet.bet * = AutoBet.multiplier;
} Else {
AutoBet.bet = AutoBet.baseBet;
}
AutoBet.prevBalance = balance;
AutoBet.amount.val (AutoBet.bet.toFixed (8));
AutoBet.clicked = false;
});
$ ( '<Button>')
.attr ( 'id', 'endBtn')
.text ( 'END Auto Bet')
.attr ( 'class', 'btn btn-lg btn-info')
.click (function () {
AutoBet.stopBtn.trigger ( 'click');
AutoBet.end ();
})
.insertAfter ( '# btn-bet-dice');
$ ( '<Button>')
.attr ( 'id', 'startBtn')
.text ( 'Start Auto Bet')
.attr ( 'class', 'btn btn-lg btn-info')
.click (function () {
AutoBet.baseBet = parseFloat (AutoBet.amount.val ());
AutoBet.bet = baseBet;
AutoBet.run = true;
AutoBet.betBtn.trigger ( 'click');
AutoBet.startBtn.addClass ( 'disabled');
})
.insertAfter ( '# btn-bet-dice');
$ ( '<Button>')
.attr ( 'id', 'stopBtn')
.text ( 'Pause / Resume')
.attr ( 'class', 'btn btn-lg btn-info')
.click (function () {
AutoBet.run =! AutoBet.run;
AutoBet.startBtn.toggleClass ( 'disabled');
})
.insertAfter ( '# btn-bet-dice');
AutoBet.startBtn = $ ( '# startBtn');
AutoBet.stopBtn = $ ( '# stopBtn');
AutoBet.endBtn = $ ( '# endBtn');
}
}; AutoBet.start ();