You are on page 1of 3

var c = _.

split(":");
if ($("#double_your_btc_error").html(""), $
("#double_your_btc_error").hide(), $("#double_your_btc_stake").removeClass("input-
error"), $("#double_your_btc_bet_win").html(""), $
("#double_your_btc_bet_lose").html(""), $("#double_your_btc_bet_win").hide(), $
("#double_your_btc_bet_lose").hide(), $("#jackpot_message").removeClass("green"), $
("#jackpot_message").removeClass("red"), $("#jackpot_message").html(""), $
("#jackpot_message").hide(), $("#double_your_btc_result").show(), "s1" == c[0]) {
var d = c[2],
u = d.split("");
if (d.toString().length < 5)
for (var p = 5 - d.toString().length, b = 0; b < p; b++)
u.unshift("0");
1 == s && (clearInterval(t), clearInterval(a), clearInterval(o),
clearInterval(n), clearInterval(i)), $("#multiplier_first_digit").html(u[0]), $
("#multiplier_second_digit").html(u[1]), $("#multiplier_third_digit").html(u[2]), $
("#multiplier_fourth_digit").html(u[3]), $("#multiplier_fifth_digit").html(u[4]), $
("#balance").html(c[3]), max_deposit_bonus = parseFloat(c[18]).toFixed(8),
balanceChanged(), $("#balance_usd").html(c[5]), $
("#next_server_seed_hash").val(c[6]), $("#next_nonce").html(c[8]), $
(".previous_server_seed").html(c[9]), $(".previous_server_seed").val(c[9]), $
("#previous_server_seed_hash").val(c[10]), $(".previous_client_seed").html(c[11]),
$(".previous_client_seed").val(c[11]), $(".previous_nonce").html(c[12]), $
("#previous_roll").html(c[2]), $("#no_previous_rolls_msg").hide(), $
("#previous_rolls_table").show(), $("#previous_roll_strings").show(), $
("#bonus_account_balance").html(c[16] + " BTC"), $
("#bonus_account_wager").html(c[17] + " BTC"), (parseFloat(c[16]) <= 0 ||
parseFloat(c[17]) <= 0) && 0 == bonus_table_closed && setTimeout(function() {
$("#bonus_account_table").hide(), $
("#user_claimed_deposit_bonus").hide(), bonus_table_closed = 1
}, 5e3), max_deposit_bonus >= parseFloat(min_bonus_amount) && 1 ==
bonus_table_closed && $("#bonus_eligible_msg").show(), parseFloat(c[19]) > 0 &&
parseFloat(c[19]) < 100 && ($(".multiply_max_bet").html(c[19] + " BTC"), $
(".multiply_max_bet").val(c[19]), max_win_amount = parseFloat(c[19])), $
("#verify_rolls_link").attr("href", "https://s3.amazonaws.com/roll-
verifier/verify.html?server_seed=" + c[9] + "&client_seed=" + c[11] +
"&server_seed_hash=" + c[10] + "&nonce=" + c[12]);
var m = e.toUpperCase();
"w" == c[1] && ($("#double_your_btc_bet_win").show(), $
("#double_your_btc_bet_win").html("You BET " + m + " so you win " + c[4] + "
BTC!"), $("#manual_enable_sounds").is(":checked") && $.ionSound.play("bell_ring")),
"l" == c[1] && ($("#double_your_btc_bet_lose").show(), $
("#double_your_btc_bet_lose").html("You BET " + m + " so you lose " + c[4] + "
BTC"), $("#manual_enable_sounds").is(":checked") && $.ionSound.play("tap")), 0 != l
&& ($("#jackpot_message").show(), "1" == c[13] ? ($
("#jackpot_message").addClass("green"), $
("#jackpot_message").html("Congratulations! You have won the jackpot of " + c[15] +
" BTC")) : ($("#jackpot_message").addClass("red"), $
("#jackpot_message").html("Sorry, you did not win the jackpot."))), parseFloat($
("#balance").html()) + parseFloat($("#bonus_account_balance").html()) < 2e-8 && $
("#low_balance_modal_link").click(), $
("#double_your_btc_bet_hi_button").attr("disabled", !1), $
("#double_your_btc_bet_lo_button").attr("disabled", !1), insertIntoBetHistory(c[1],
c[4], c[2], c[9], c[11], c[10], c[12], "DICE", e, l, r, $
("#double_your_btc_payout_multiplier").val(), c[20], c[21], c[22], c[23], 0,
"normal")
} else $("#double_your_btc_error").show(), $
("#double_your_btc_digits").hide(), parseFloat(c[1]) > 0 && parseFloat(c[1]) < 100
&& ($(".multiply_max_bet").html(c[1] + " BTC"), $(".multiply_max_bet").val(c[1]),
max_win_amount = parseFloat(c[1])), BetErrors(c[0]), 1 == s && (clearInterval(t),
clearInterval(a), clearInterval(o), clearInterval(n), clearInterval(i)), $
("#multiplier_first_digit").html(0), $("#multiplier_second_digit").html(0), $
("#multiplier_third_digit").html(0), $("#multiplier_fourth_digit").html(0), $
("#multiplier_fifth_digit").html(0), "e6" == c[0] ? ($
("#double_your_btc_bet_hi_button").attr("disabled", !0), $
("#double_your_btc_bet_lo_button").attr("disabled", !0)) : ($
("#double_your_btc_bet_hi_button").attr("disabled", !1), $
("#double_your_btc_bet_lo_button").attr("disabled", !1))
}).fail(function() {
$("#double_your_btc_result").show(), $("#double_your_btc_error").show(), $
("#double_your_btc_digits").hide(), $("#double_your_btc_error").html("Request timed
out. Please try again."), 1 == s && (clearInterval(t), clearInterval(a),
clearInterval(o), clearInterval(n), clearInterval(i)), $
("#multiplier_first_digit").html(0), $("#multiplier_second_digit").html(0), $
("#multiplier_third_digit").html(0), $("#multiplier_fourth_digit").html(0), $
("#multiplier_fifth_digit").html(0), $
("#double_your_btc_bet_hi_button").attr("disabled", !1), $
("#double_your_btc_bet_lo_button").attr("disabled", !1)
})
}

function title_countdown(e) {
var t = new Date / 1e3 + e;
setInterval(function() {
if (e < 1) $("title").html("0m:0s - FreeBitco.in - Win free bitcoins every
hour!");
else {
e = t - new Date / 1e3 - 1;
var a = Math.floor(e / 60),
o = Math.floor(e - 60 * a);
$("title").html(a + "m:" + o + "s - FreeBitco.in - Win free bitcoins
every hour!")
}
}, 1e3)
}

function ShowMoreRefs(e) {
var t = parseInt($("#referrals_shown").val(), 0);
$.get("/?op=show_more_refs&start=" + t + "&count=" + e, function(a) {
$("#referral_list_table").append(a), 10 == e ? $("#referrals_shown").val(t
+ 10) : 20 == e ? $("#referrals_shown").val(t + 20) : 9999999 == e && $
("#show_more_refs_options").hide()
})
}

function ShowAdvancedStats(e) {
$.get("/?op=show_advanced_stats&days=" + e, function(e) {
$("#detailed_ref_stats_table").show(), $
("#detailed_ref_stats_table").find("tr:gt(0)").remove(), $
("#detailed_ref_stats_table").append(e)
})
}

function SwitchTabs() {
$("#top_leader_iframe").attr("src", $("#top_leader_iframe").attr("src")), $
("#left_sky_iframe").attr("src", $("#left_sky_iframe").attr("src")), $
("#right_sky_iframe").attr("src", $("#right_sky_iframe").attr("src"))
}
function GenerateDepositAddress() {
$.get("/?op=generate_bitcoin_deposit_address", function(e) {
$("#deposit_address").html('<p>Send bitcoins to the address below to top up
your advertising account balance.</p><p><div style="width:400px;"><input
type="text" size=40 style="text-align:center;" value="' + e + '"
onClick="this.select();"></div></p>')
})
}

function DeleteAdCampaign(e) {
1 == confirm("Are you sure you wish to delete this ad campaign? Deleting an ad
campaign also deletes it's stats. If you wish to stop running this ad but want to
retain it's stats, please pause it instead. Click OK if you would like to proceed
with deleting this ad campaign else click CANCEL.") && ($("#ad_campaign_" +
e).hide(), $("#ad_campaign_details_" + e).hide(), $.get("/?
op=delete_ad_campaign&id=" + e, function() {}))
}

You might also like