"Status Boxes"
Bootstrap 3.2.0 Snippet by wangkj

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
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-3">
<div class="panel status panel-danger">
<div class="panel-heading">
<h1 class="panel-title text-center">25</h1>
</div>
<div class="panel-body text-center">
<strong>Late</strong>
</div>
</div>
</div>
<div class="col-xs-6 col-md-3">
<div class="panel status panel-warning">
<div class="panel-heading">
<h1 class="panel-title text-center">17</h1>
</div>
<div class="panel-body text-center">
<strong>Today</strong>
</div>
</div>
</div>
<div class="col-xs-6 col-md-3">
<div class="panel status panel-success">
<div class="panel-heading">
<h1 class="panel-title text-center">2</h1>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900|Oswald);
body{
padding: 50px 0;
}
.status {
font-family: 'Source Sans Pro', sans-serif;
}
.status .panel-title {
font-family: 'Oswald', sans-serif;
font-size: 72px;
font-weight: bold;
color: #fff;
line-height: 45px;
padding-top: 20px;
letter-spacing: -0.8px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$.get("http://api.bootswatch.com/3/", function (data) {
var themes = data.themes;
var select = $("select");
select.show();
themes.forEach(function(value, index){
select.append($("<option />")
.val(index)
.text(value.name));
});
select.change(function(){
var theme = themes[$(this).val()];
//$( "link" ).attr( 'src', theme.css );
$("link").attr("href", theme.css);
}).change();
}, "json").fail(function(){
alert("Failure!");
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: