Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. (function() {
  2. var eventDisplay = new $.Event('displayChanged'),
  3. origShow = $.fn.show,
  4. origHide = $.fn.hide;
  5. $.fn.show = function() {
  6. origShow.apply(this, arguments);
  7. $(this).trigger(eventDisplay,['show']);
  8. };
  9. $.fn.hide = function() {
  10. origHide.apply(this, arguments);
  11. $(this).trigger(eventDisplay,['hide']);
  12. };
  13. })();
  14.  
  15. $("div.game__menu > div:nth-child(2)").trigger("click");
  16. $("#input--bets--number").val("20").trigger("change");
  17. $("#input--chance").val("16.50");
  18. calcul_profit("chance")
  19.  
  20.  
  21. $("#btn--stop--autobet").on('displayChanged', function(e,state) {
  22. if(state == "hide"){
  23. setTimeout(()=>{
  24. $("#input--bets--number").val(20).trigger("change");
  25. $("#change--condition").trigger("click");
  26. setTimeout(()=>{
  27. $("#btn--start--autobet").trigger("click");
  28. },200)
  29. },200)
  30. }
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement