-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
147 lines (139 loc) · 3.41 KB
/
admin.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<html>
<head>
<title>Admin login</title>
<link rel="shortcut icon" type="image/x-icon" href="images/em.jpg" />
<link rel="stylesheet" href="loader.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/b379d3e204.js" crossorigin="anonymous"></script>
<style>
*{
margin:0;
padding:0;
font-family: sans-serif;
}
.menu{
background-color:#009879;
height:100%;
width:100%;
}
.formbox{
font-family: sans-serif;
height: 380px;
width: 430px;
position: relative;
margin: 6% auto;
background: #fff;
padding: 5px;
border-radius: 20px;
box-shadow: 0 0 20px 9px #ff61241f;
}
.input-group{
top:180px;
position: absolute;
width: 280px;
transition: .5s;
}
.input-field{
width: 100%;
padding: 10px 0;
margin: 5px 0;
border-left: 0;
border-top:0;
border-right: 0;
border-bottom: 1px solid #999;
outline: none;
background: transparent;
}
.submit-btn{
width: 85%;
padding: 10px 30px;
cursor: pointer;
display: block;
margin:auto;
background: linear-gradient(to right,#009879,#32CD32);
border: 0;
outline: none;
border-radius: 30px;
}
#login{
left: 50px;
}
.a{
font-weight: 10px;
}
.eye{
position: absolute;
margin-top: 10px;
margin-left:270px;
cursor:pointer;
}
#hide1{
display: none;
}
h1{
font-family: sans-serif;
color:#009FFD;
}
.float-right{
color: #fff;
font-size: 15px;
text-decoration: none;
}
.link{
background-color:#009879;
width:1290px;
height:40px;
}
.avatar{
width:200px;
height:200px;
border-radius:50%;
position:absolute;
top:-50px;
left:170px;
}
</style>
</head>
<body>
<div class="loader">
<img src="gif/loader.gif" alt="Loading...." />
</div>
<script src="load.js">
</script>
<div class="menu">
<div class="link">
<a class="float-right" href="home.html" style="font-size:20px;"><h4><i class="fa fa-home" aria-hidden="true">HOME</i></h4></a>
</div>
<div class="formbox">
<center><img src="images/login.jpg" class="avatar" style="width:100px;height:100px;"></center><br><br><br>
<center><h1 style="color:#009879;">ADMIN LOGIN</h1></center>
<form action="adminvalidation.php" method="post" id="login" class="input-group" autocomplete="off">
<input type="text" name="userid" class="input-field" placeholder="User Id" required>
<span class="eye" onclick="myFunction()">
<i id="hide1"class="fa fa-eye" style="margin-bottom: auto;color:green;"></i>
<i id="hide2"class="fa fa-eye-slash" style="margin-bottom: auto;color:green"></i>
</span>
<input type="password" name="password" class="input-field" id="myinput" placeholder="Enter Password" required><br><br>
<center><button type="submit" name="submit" class="submit-btn">Admin Login</button></center>
</form>
</div>
</div>
<script>
function myFunction(){
var x = document.getElementById("myinput");
var y = document.getElementById("hide1");
var z = document.getElementById("hide2");
if(x.type === 'password'){
x.type = "text";
y.style.display="block";
z.style.display="none";
}
else{
x.type = "password";
y.style.display="none";
z.style.display="block";
}
}
</script>
</body>
</html>