-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginpage.html
131 lines (111 loc) · 3.6 KB
/
loginpage.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login.minions</title>
<link rel="icon" type="image/x-icon" href="./media/app_icon.jpg">
<link rel="stylesheet" href="style.css">
</head>
<style>
.scr {
background-color: rgba(100, 148, 237, 0.63);
font-size: 20px;
color: white;
}
body {
background-image: url("./media/mainpage.jpg");
background-repeat: no-repeat;
background-size: cover;
}
</style>
<body>
<!-- <style>
.logintable{
background-color: rgba(255, 255, 0, 0.616);
display: flex;
justify-content: center;
padding: 60px 0px 60px 0px;
margin: 150px 250px 250px 250px;
}
body{
background-image: url("./media/mainpage.jpg");
background-repeat: no-repeat;
background-size: cover;
}
.logintable th,td{
padding: 0px 15px 0px 15px;
font-size: 30px;
}
.sbt{
border-radius: 30px;
background-color: cornflowerblue;
color: yellow;
font-size: 20px;
padding: 0px 20px 0px 20px;
}
</style> -->
<div class="scr">
<p>
<marquee><img src="./media/lognav1.png" height="100px" width="150px ">
WELCOME TO MINIONS WORLD! TUTALILOO TI AMO!<img src="./media/lognav1.png" height="100px" width="100px ">
</marquee>
</p>
</div>
<table class="logintable">
<tr>
<th colspan="4" style="background-color: cornflowerblue;">
<p>Login</p>
</th>
</tr>
<tr>
<th rowspan="4"><img src="./media/nav.png" height="200px" width="200px"></td>
</tr>
<tr>
<td>Username</td>
<td><input id="user" type="text" placeholder="email id"></td>
</tr>
<tr>
<td>Password</td>
<td><input id="pass" type="password" placeholder="password"></td>
</tr>
<tr>
<th colspan="6"><button class="sbt" onclick="login()">submit</button></th>
</tr>
</table>
</div>
<div style="margin-top:700px;">
<footer>
<p>
<a id="copyright">© 2023 minions</a>
<a>Bello</a>
<a>Tutaliloo</a>
<a id="madewith">Made with love</a>
</p>
</footer>
</div>
<script>
function login() {
var uname = document.getElementById("user").value;
var pwd = document.getElementById("pass").value;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (uname == '') {
alert("please enter user name.");
}
else if (pwd == '') {
alert("enter the password");
}
else if (!filter.test(uname)) {
alert("Enter valid email id.");
}
else if (pwd.length < 6) {
alert("Password min length is 6.");
}
else {
alert('Thank You for Login & You are Redirecting to Minions Website');
window.location = "aboutus.html";
}
}
</script>
</html>