Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <script>
  2.                function register() {
  3.                
  4.                 var email = $("input[name='email']").val();
  5.                 var pass = $("input[name='haslo']").val();
  6.                
  7.                
  8.                 var redirectURL = "http://yoursite.com";
  9.                
  10.              
  11.              
  12.                 if(email == '' || email == 'undefined') {
  13.                                 alert("Proszę podać email");
  14.                                 return;
  15.                         }
  16.  
  17.                 if(email.indexOf("@") == -1){
  18.  
  19.                                 alert('Niepoprawny email');
  20.  
  21.                                 return;
  22.  
  23.                         }
  24.                 $(".contact3-form-btn").prop('disabled', 'disabled');
  25.                 setTimeout(function(){
  26.                 $(".contact3-form-btn").prop('disabled', false);
  27.                 }, 5000);
  28.        
  29.                 var url = 'http://yoursite.com/easy-register?email='+email+"&pass="+pass+"&redirectURL="+redirectURL+"&ref="+'myreff';
  30.                 window.top.location.href = url;
  31.  
  32.                
  33.        
  34.         }
  35.        
  36.         </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement