-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjason.txt
50 lines (37 loc) · 1.39 KB
/
jason.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var userData=[{name:'Vijay Dhanabalan',empId:'552250',email:'vijay.dhanabalan@tcs.com'},{name:'Amarjyoti Deka',empId:'399045',email:'amarjyoti.deka@tcs.com'},{name:'Pankaj Singh',empId:'759774',email:'Pankaj.singh7@tcs.com'},{name:'Nirmala Ayyavu',empId:'538884',email:'nirmala.ayyavu@tcs.com'},{name:'Naresh Gupta',empId:'577325',email:'nareshchand.g@tcs.com'}];
$("loginBtn").click(function(){
for(int j=0;j<userData.length;j++)
{
if((userData[j].name==userName)&&(userData[j].empId==password))
}
});
$(function(){
$("#signupLink").click(function(){
$('#loginbox').hide();
$('#signupbox').show();
});
$("#signinlink").click(function(){
$('#signupbox').hide();
$('#loginbox').show();
});
var userData=[{name:'Vijay Dhanabalan',empId:'552250',email:'vijay.dhanabalan@tcs.com'},{name:'Amarjyoti Deka',empId:'399045',email:'amarjyoti.deka@tcs.com'},{name:'Pankaj Singh',empId:'759774',email:'Pankaj.singh7@tcs.com'},{name:'Nirmala Ayyavu',empId:'538884',email:'nirmala.ayyavu@tcs.com'},{name:'Naresh Gupta',empId:'577325',email:'nareshchand.g@tcs.com'}];
$("#loginBtn").click(function(){
var userName=document.getElementById("userName").value;
var password=document.getElementById("password").value;
var flag=0;
for(var j=0;j<userData.length;j++)
{
if((userData[j].name==userName)&&(userData[j].empId==password)){
flag=1;
break;
}
}
if(flag==1){
return true;
}
else{
$(".alert").show();
return false;
}
});
});