Made changes to number of hackers - better layout

gh-pages
Cyrille Médard de Chardon 2014-09-23 21:23:56 +02:00
parent 77a67e06e5
commit a8a675616c
3 changed files with 6 additions and 3 deletions

View File

@ -73,7 +73,8 @@ h1, h2, h3, h4, h5, h6 {
}
.hackers {
font-size: 0.8em;
font-size: 0.4em;
margin-bottom: 1em;
}
.logo {

View File

@ -16,6 +16,7 @@
<div class="row">
<div class="col-sm-12 col-md-4 logo">
Level2
<div class="hackers"></div>
</div>
<div class="col-sm-6 col-md-4">

View File

@ -224,12 +224,13 @@ function l2status() {
if (status.state.open) {
$('.status')
.addClass('open')
.html('<h1>Open</h1> Opened ' + timeStamp + "<br>" +
'<div class="hackers">' +status.sensors.people_now_present[0].value + ' people inside</div>' );
.html('<h1>Open</h1> Opened ' + timeStamp);
$('.hackers').html( status.sensors.people_now_present[0].value + ' people inside' );
} else {
$('.status')
.addClass('closed')
.html('<h1>Closed</h1> ' + timeStamp);
$('.hackers').html('');
}
}
});