0% found this document useful (0 votes)
62 views4 pages

Script Freebitcoin 2021

The document contains JavaScript code for a betting application that allows users to start and stop a betting process based on specific patterns. It includes functions to initiate the betting, stop it, and validate the outcomes against user-defined patterns. The application updates the user interface dynamically and alerts the user when a matching pattern is found, displaying the investment made in satoshis.

Uploaded by

Pro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views4 pages

Script Freebitcoin 2021

The document contains JavaScript code for a betting application that allows users to start and stop a betting process based on specific patterns. It includes functions to initiate the betting, stop it, and validate the outcomes against user-defined patterns. The application updates the user interface dynamically and alerts the user when a matching pattern is found, displaying the investment made in satoshis.

Uploaded by

Pro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

var x = '<div id="botonera" class="large-12 small-12 columns center">' +

'<button id="start" onclick="iniciar()" class="btn btn-primary"


style="margin:0 0 10px 0; padding:3px; width:auto;">Iniciar</button>' +
'</div>' +
'<div class="large-12 small-12 columns center">' +
'<input type="text" id="patrones" value="RRR-VVV"
style="text-align:center; height:30px;">' +
'</div>'
$("#double_your_btc_right_section p:first").html(x);

$('#double_your_btc_bet_lose').unbind();
$('#double_your_btc_bet_win').unbind();
var jugadas; var patron; var boton;
var hacerParada = false; var balanceInicial; var balanceActual;
function iniciar(){
boton = $("#double_your_btc_bet_hi_button");
//var boton = $("#double_your_btc_bet_lo_button");
patron=$("#patrones").val();
hacerParada=false;
$("#botonera").html('<button id="start" onclick="parar()" class="btn btn-warning
style="margin:0 0 10px 0; padding:3px; width:auto;">Parar</button>');
jugadas = "";
$('#double_your_btc_stake').val('0.00000001');
//$("#double_your_btc_bet_hi_button").trigger("click");
boton.trigger("click");
balanceInicial = ( parseInt(parseFloat ( $("#balance").html() ) * 100000000) );
}

function parar(){
hacerParada = true;
$("#botonera").html('<button id="start" onclick="iniciar()" class="class="btn
btn-primary" style="margin:0 0 10px 0; padding:3px;
width:auto;">Iniciar</button>');
}

$('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("lose")') ){
validarPatron("R");
}
});

$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("win")') ){
validarPatron("V");
}
});

function validarPatron(resultado){
jugadas+= resultado;
var cadena = $("#patrones").val();
var patrones = cadena.split("-");
for (var i = 0; i < patrones.length; i++) {
var longitud = patrones[i].length;
var valor = jugadas.substr(jugadas.length - longitud);
var patron = patrones[i].substr(0,longitud);
if (valor==patron){
parar();
balanceActual = (parseInt(parseFloat ($
("#balance").html())*100000000));
var inversion = balanceActual-balanceInicial;
alert("Patr�n encontrado: " + valor + "\nInversi�n:" +
inversion + " satoshis" );
return;
}
}
boton.trigger("click");
}

You might also like