-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (49 loc) · 1.57 KB
/
Copy pathindex.html
File metadata and controls
53 lines (49 loc) · 1.57 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link href="css/main.css" rel="stylesheet" type="text/css" >
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" >
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="loginBackground">
<div class="loginPanel">
<form>
<div class="animateGroup">
<input type="text" class="loginInput User"/>
<div class="animatelabel">User Name</div>
<div class="lineeff"></div>
</div>
<div class="animateGroup">
<input type="password" class="loginInput Password"/>
<div class="animatelabel">Password</div>
<div class="lineeff"></div>
</div>
<input type="submit" class="btn-submit-login"/>
</form>
</div>
</div>
</body>
<script type="text/javascript">
$(function(){
$(".loginInput").focus(function(){
$(this).parent('.animateGroup').find('.animatelabel').addClass('animatelabelSmall');
$(this).parent('.animateGroup').find('.lineeff').addClass('openLine');
});
$(".loginInput").blur(function(){
if($(this).val()=="")
{
$(this).parent('.animateGroup').find('.animatelabel').removeClass('animatelabelSmall');
$(this).parent('.animateGroup').find('.lineeff').removeClass('openLine');
}
else
{
}
});
});
</script>
</html>