Bootstrap 3 Template
This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.
HTML
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<div class="modal-body">
<form action="" class="form center-block" onsubmit="return login()">
<div class="form-group">
<input type="text" id="username" class="form-control input-lg" placeholder="">
</div>
<div class="form-group">
<input type="password" id="password" class="form-control input-lg" placeholder="">
</div>
<div class="form-group">
<button class="btn btn-primary btn-lg btn-block" type="submit">Login</button>
</div>
</form>
</div>
CSS
/* Latest compiled and minified CSS included as External Resource*/
/* Optional theme */
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css');
body {
margin: 10px;
}
JavaScript
function login() {
var un = document.getElementById("username").value;
var pw = document.getElementById("password").value;
if (un == "admin" && pw == "admin") {
alert("SUCCESS");
return true;
} else {
alert("FAIL");
return false;
}
}