New Script
New Script
New Script
function higherBet(){
console.log('Highest bet: '+higherbet);
}
function changeBet(bet){
startValue=bet;
}
function realtime(time) {
var sec_num =parseInt(time, 10) ; // don't forget the second param
var hours = Math.floor(sec_num / 3600);
var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
var seconds = sec_num - (hours * 3600) - (minutes * 60);
if (hours!=0) {hours = hours+' Hours ';} else{hours = '';}
if (minutes!=0) {minutes = minutes+' Minutes ';}
else{minutes = '';}
}
);
// Winner
$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
if( $(event.currentTarget).is(':contains("win")') )
{
gameWin = gameWin + 1;
roundnumb();
console.log('%cWin: ' + gameWin + ' Lost: ' + gameLost, 'color: #FF0000'
);
endtime=(new Date()).getTime();
var time=Math.floor((endtime-starttime )/1000);
console.log(realtime(time));
higherBet();
if( stopBeforeRedirect() )
{
return;
}
if( iHaveEnoughMoni() )
{
console.log('You WON!');
reset();
if( stopped )
{
stopped = false;
return false;
}
}
else
{
console.log('You WON! ');
}
setTimeout(function(){
$loButton.trigger('click');
}, getRandomWait());
}
}
);