forked from promolic1/Bootstrap-3-Admin-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (66 loc) · 3 KB
/
index.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
<!DOCTYPE html>
<html class="bootstrap-admin-vertical-centered">
<head>
<title>Login page | Bootstrap 3.x Admin Theme</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" media="screen" href="css/bootstrap.min.css">
<link rel="stylesheet" media="screen" href="css/bootstrap-theme.min.css">
<!-- Bootstrap Admin Theme -->
<link rel="stylesheet" media="screen" href="css/bootstrap-admin-theme.css">
<!-- Custom styles -->
<style type="text/css">
.alert{
margin: 0 auto 20px;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5shiv.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<![endif]-->
</head>
<body class="bootstrap-admin-without-padding">
<div class="container">
<div class="row">
<div class="alert alert-info">
<a class="close" data-dismiss="alert" href="#">×</a>
Press enter key or click the Submit button
</div>
<form method="post" action="about.html" class="bootstrap-admin-login-form">
<h1>Login</h1>
<div class="form-group">
<input class="form-control" type="text" name="email" placeholder="E-mail">
</div>
<div class="form-group">
<input class="form-control" type="password" name="password" placeholder="Password">
</div>
<div class="form-group">
<label>
<input type="checkbox" name="remember_me">
Remember me
</label>
</div>
<button class="btn btn-lg btn-primary" type="submit">Submit</button>
</form>
</div>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function() {
// Setting focus
$('input[name="email"]').focus();
// Setting width of the alert box
var alert = $('.alert');
var formWidth = $('.bootstrap-admin-login-form').innerWidth();
var alertPadding = parseInt($('.alert').css('padding'));
if(isNaN(alertPadding)){
alertPadding = parseInt($(alert).css('padding-left'));
}
$('.alert').width(formWidth - 2 * alertPadding);
});
</script>
</body>
</html>