1jQuery(document).ready(function($){ 2 3 4 $("#username_login").live('keypress', function (e) { 5 if ( e.keyCode == 13){ 6 $("#LOGIN_user").trigger('click'); 7 } 8 }); 9 10 11 $('#password_login').live('keypress', function (e) { 12 // alert(2); 13 if ( e.keyCode == 13){ 14 $("#LOGIN_user").trigger('click'); 15 } 16 }); 17 18 19 $('#LOGIN_user').live("click",function() { 20 $('#loader_button').show(); 21 22 var username = $('#username_login').val(); 23 var password = $('#password_login').val(); 24 var templete = $('#templete').val(); 25 //$("#loader_button").css({"dislpay":"none"}); 26 $("#show_error_area").hide(); 27 28 //alert("includes/login_check.php?username="+username+"&pass="+password); 29 30 if(username =='' && password =='') 31 { 32 $('#show_error_area').html('Please enter your username and password.'); 33 $('#show_error_area').show(); 34 $('#username_login').attr('style','border:1px solid #FF0000;'); 35 $('#password_login').attr('style','border:1px solid #FF0000;'); 36 $('#username_login').focus(); 37 $('#loader_button').hide(); 38 39 }else if(username !='' && password =='') 40 { 41 $('#show_error_area').html('Please enter your password.'); 42 $('#show_error_area').show(); 43 $('#username_login').attr('style','1px solid #3B5998;'); 44 $('#password_login').attr('style','border:1px solid #FF0000;'); 45 $('#password_login').focus(); 46 $('#loader_button').hide(); 47 } 48 else if(username =='' && password !='') 49 { 50 $('#show_error_area').html('Please enter your username.'); 51 $('#show_error_area').show(); 52 $('#password_login').attr('style','1px solid #3B5998;'); 53 $('#username_login').attr('style','border:1px solid #FF0000;'); 54 $('#username_login').focus(); 55 $('#loader_button').hide(); 56 } 57 else{ 58 59 if(username !='' && password !='') 60 { 61 $.ajax({ 62 url:"/pp_responsive_home/login_check.php?username="+username+"&pass="+password, 63 type:'POST', 64 cache:false, 65 async:true, 66 data:$('#login_form').serialize(), 67 beforeSend:function() 68 { 69 $('#loader_button').show(); 70 }, 71 success:function(data) 72 { 73 if(data=="##FALSE##") 74 { 75 76 $("#loader_button").css({"dislpay":"none"}); 77 //alert($("#show_error_area").html()); 78 $("#show_error_area").html('The username or password you entered is incorrect.'); 79 $("#show_error_area").show(); 80 $('#username_login').attr('style','border:1px solid #3B5998;'); 81 $('#password_login').attr('style','border:1px solid #FF0000;'); 82 $('#password_login').focus(); 83 $('#loader_button').hide(); 84 85 } 86 else 87 { 88 var data_array = data.split("=||="); 89 console.log(data); 90 if(data_array[0] == 'TM_delay') 91 { 92 window.location.href = data_array[1]; 93 } 94 else 95 { 96 $("#main_login_area").html(data_array[0]); 97 98 $("#show_error_area").hide(); 99 $("#login_div").hide(); 100 $("#if_user").val("1"); 101 } 102 } 103 104 } 105 }); 106 107 } 108 109 } 110 }); 111 112 113 $('.login_closed').live("click",function(){ 114 location.reload(); 115 116 }); 117 118});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.