Untitled


SUBMITTED BY: mepani1523

DATE: March 1, 2016, 8:13 a.m.

FORMAT: Text only

SIZE: 581 Bytes

HITS: 1179

  1. function iHaveEnoughMoni(){
  2. var balance = deexponentize(parseFloat($('#balance').text()));
  3. var current = deexponentize($('#double_your_btc_stake').val());
  4. return ((balance*2)/100) * (current*2) > stopPercentage/100;
  5. }
  6. function stopBeforeRedirect(){
  7. var minutes = parseInt($('title').text());
  8. if( minutes < stopBefore )
  9. {
  10. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  11. stopGame();
  12. return true;
  13. }
  14. return false;

comments powered by Disqus