Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    updateTextBox(abc[bcd]);
  2.     ajaxCall = $['ajax']({
  3.         url: 'https://secure.pxn.rocks/files/ajax/forms/ccc_send_api1.php',
  4.         dataType: 'json',
  5.         cache: false,
  6.         type: 'POST',
  7.         beforeSend: function (yeah) {
  8.             //if (abc['length']>50) {
  9.               //$('#checkStatus')['html']("<img height='18' width='18' src='https://secure.pxn.rocks/assets/images/loading.gif'> <small style='color:#ff0000;'>[Limite de 50 superado] </small> ");
  10.             //}else{
  11.             $('#checkStatus')['html']("<img height='18' width='18' src='https://secure.pxn.rocks/assets/images/loading.gif'>");  
  12.             //}      
  13.         },
  14.         data: 'ajax=1&do=check&amount='+costji+'&LSK='+USERPSK+'&cclistxx=' + encodeURIComponent(abc[bcd]),
  15.         success: function (resultpost) {
  16.           var magici=abc['length'];
  17.            
  18.             switch (resultpost['error']) {
  19.             case -1:
  20.                 bcd++;
  21.                 play("assets/sounds/error.mp3");
  22.                 $('#wrong')['append'](resultpost['msg'] + '<br />');
  23.                 updateProgress(bcd, magici);
  24.                 tvmit_wrongUp();
  25.                 break;;
  26.             case 1:
  27.                 ;
  28.             case 12:
  29.                 alert('Error! Contact Admin.');
  30.                 throw new Error('Something went badly wrong!');
  31.                 break;;
  32.             case 3:
  33.                 $('#wrong')['append'](resultpost['msg']);
  34.                 updateProgress(bcd, magici);
  35.                 break;;
  36.             case 2:
  37.                 bcd++;
  38.                 $('#myccsmuertas')['append'](resultpost['msg'] + '<br />');
  39.                 fgh++;
  40.                 updateProgress(bcd, magici);
  41.                
  42.                 tvmit_dieUp();
  43.                 break;;
  44.             case 0:
  45.                 bcd++;
  46.                 $('#myccsvivas')['append'](resultpost['msg'] + '<br />');
  47.  
  48.                   if (parseInt(resultpost['credits']) <= 10) {
  49.                   $("#user_credits").css({ color: "red"});
  50.                   }else{
  51.                     $("#user_credits").css({ color: "green"});
  52.                   }
  53.                 $("#user_credits").html(resultpost['credits']);
  54.                 $("#header_credits").html(resultpost['credits']);
  55.                
  56.  
  57.                 play("assets/sounds/monedas.mp3");
  58.  
  59.  
  60.                
  61.  
  62.                 tvmit_liveUp();
  63.                 updateProgress(bcd,magici);
  64.                 break;;
  65.             };
  66.             OKTY(abc, bcd, def, fgh);
  67.         },error: function (data) {
  68.           alert("Error inesperado");
  69.           stopLoading(false);
  70.         }
  71.     });
  72.     return true;
  73. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement