-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.jsp
90 lines (66 loc) · 2.39 KB
/
home.jsp
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Sign-Up/Login Form</title>
<link rel="stylesheet" href="css/stylelogin.css">
<script language=javascript>
function signup() {
document.forms[0].action = "signup.jsp";
document.forms[0].submit();
}
function forget() {
document.forms[0].action = "forget.jsp";
document.forms[0].submit();
}
function setting() {
document.forms[0].action = "settings.jsp";
document.forms[0].submit();
}
function home() {
document.forms[0].action = "home.jsp";
document.forms[0].submit();
}
function login() {
var uname = "" + document.forms[0].p1.value;
var pwd = "" + document.forms[0].p2.value;
//uname=uname.trim();
//pwd=pwd.trim();
if (uname == "" || pwd == "")
alert("Please Enter All Fields");
else if (pwd.length < 8)
alert("Password must greater than 7 Letter");
else {
document.forms[0].action = "/Phising/Signin";
document.forms[0].submit();
}
}
</script>
</head>
<body background="images/blur.jpg">
<form method=post>
<div class="form">
<h1><b>Global</B>Mail</h1>
<ul class="tab-group">
<li class="tab "><a href="signup.jsp">Sign Up</a></li>
<li class="tab active"><a href="home.jsp">Log In</a></li>
</ul>
<div class="tab-content">
<div id="login">
<form action="/" method="post">
<div class="field-wrap">
<input type="text" name=p1 placeholder="User Name" required autocomplete="off"/>
</div>
<div class="field-wrap">
<input type="password" name=p2 placeholder="Password" required autocomplete="off"/>
</div>
<p class="forgot"><a href="#">Forgot Password?</a></p>
<button onclick="login()" class="button button-block"/>Log In</button>
</form>
</div><!-- tab-content -->
</div> <!-- /form -->
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
</form>
</body>
</html>