-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNew.html
More file actions
139 lines (117 loc) · 5.44 KB
/
New.html
File metadata and controls
139 lines (117 loc) · 5.44 KB
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
132
133
134
135
136
137
138
139
<!-- Comments and Proper documentation pending-->
<!DOCTYPE html>
<html lang="en">
<head>
<title> Reading Panda </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- meta tags-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap frame work css -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<link rel="shortcut icon" type="image/png" href="logo1.png">
<style>
.navbar-right {
padding-left: 900px;
}
body#LoginForm {
background-repeat:no-repeat;
background-position:center;
background-size:cover;
padding:30px;
}
.form-heading { color:#fff; font-size:23px;}
.panel h2{ color:#444444; font-size:18px; margin:0 0 8px 0;}
.panel p { color:#777777; font-size:14px; margin-bottom:30px; line-height:24px;}
.login-form .form-control {
background: #f7f7f7 none repeat scroll 0 0;
border: 1px solid #d4d4d4;
border-radius: 14px;
font-size: 14px;
height: 50px;
line-height: 50px;
}
.main-div {
background: #ffffff none repeat scroll 0 0;
border-radius: 13px;
margin: 10px auto 30px;
max-width: 38%;
padding: 50px 70px 70px 71px;
}
.login-form .form-group {
margin-bottom:10px;
}
.login-form{ text-align:center; }
.login-form .btn.btn-primary {
background: #000000 none repeat scroll 0 0;
border-color: #ffffff;
color: #000000;
font-size: 14px;
width: 100%;
height: 50px;
line-height: 50px;
padding: 0;
}
.botto-text {
color: #ffffff;
font-size: 14px;
margin: auto;
}
.btn { border-radius: 14px;}
.login-form .btn.btn-primary.reset {
background: #ff9900 none repeat scroll 0 0;
border-radius: 14px;
}
.container { padding-top: 60px;}
.back { text-align: left; margin-top:10px;}
.back a {color: #444444; font-size: 13px;text-decoration: none;}
</style>
</head>
<body style="background-image: url(bgimage.jpg); background-size: 100%;">
<nav class="navbar navbar-expand-sm bg-white">
<a class="navbar-brand" href="homePage.html"><img src="logo.png" height="50" width="55"></a>
<ul class="navbar-nav">
<li class="nav-item">
<h1 style="font-family:cursive; background-color:white;"><b>Reading Panda</b> </h1>
</li>
</ul>
</nav>
<div class="LoginForm">
<div class="container">
<div class="login-form">
<div class="main-div">
<div class="panel">
<h2 style="font-family:cursive;">Admin Login</h2>
<p>Please enter username and password</p>
</div>
<form name="login">
<div class="form-group">
User name<input type="text" name="userid"/>
</div>
<br>
<div class="form-group">
Password<input type="password" name="pswrd"/>
</div>
<input type="button" onclick="check(this.form)" value="Login"/>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
if(form.userid.value == "admin" && form.pswrd.value == "admin")
{
window.open('insert.jsp')/*opens the target page while Id & password matches*/
}
else
{
alert("Error Password or Username")/*displays error message*/
}
}
</script>
</div>
</div>
</div>
</div>
</body>
</html>